···546546 # We do not have systemd in stage-1 boot so must invoke `multipathd`
547547 # with the `-1` argument which disables systemd calls. Invoke `multipath`
548548 # to display the multipath mappings in the output of `journalctl -b`.
549549+ # TODO: Implement for systemd stage 1
549550 boot.initrd.kernelModules = [ "dm-multipath" "dm-service-time" ];
550550- boot.initrd.postDeviceCommands = ''
551551+ boot.initrd.postDeviceCommands = mkIf (!config.boot.initrd.systemd.enable) ''
551552 modprobe -a dm-multipath dm-service-time
552553 multipathd -s
553554 (set -x && sleep 1 && multipath -ll)
+4-4
nixos/modules/system/boot/initrd-network.nix
···116116117117 boot.initrd.kernelModules = [ "af_packet" ];
118118119119- boot.initrd.extraUtilsCommands = ''
119119+ boot.initrd.extraUtilsCommands = mkIf (!config.boot.initrd.systemd.enable) ''
120120 copy_bin_and_libs ${pkgs.klibc}/lib/klibc/bin.static/ipconfig
121121 '';
122122123123- boot.initrd.preLVMCommands = mkBefore (
123123+ boot.initrd.preLVMCommands = mkIf (!config.boot.initrd.systemd.enable) (mkBefore (
124124 # Search for interface definitions in command line.
125125 ''
126126 ifaces=""
···148148 done
149149 ''
150150151151- + cfg.postCommands);
151151+ + cfg.postCommands));
152152153153- boot.initrd.postMountCommands = mkIf cfg.flushBeforeStage2 ''
153153+ boot.initrd.postMountCommands = mkIf (cfg.flushBeforeStage2 && !config.boot.initrd.systemd.enable) ''
154154 for iface in $ifaces; do
155155 ip address flush dev "$iface"
156156 ip link set dev "$iface" down