summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-02-03 13:29:08 +0300
committerNikolay Amiantov <ab@fmap.me>2016-02-03 14:55:42 +0300
commitcc70183ceef7abc08a98453b33f9a8b24c3a123e (patch)
treeda0e8e35accba9d4c795ba287a597aa53826cf35 /nixos/modules
parent889351af8b8a9e8bb39dbd09dc56691a28b9d823 (diff)
downloadnixlib-cc70183ceef7abc08a98453b33f9a8b24c3a123e.tar
nixlib-cc70183ceef7abc08a98453b33f9a8b24c3a123e.tar.gz
nixlib-cc70183ceef7abc08a98453b33f9a8b24c3a123e.tar.bz2
nixlib-cc70183ceef7abc08a98453b33f9a8b24c3a123e.tar.lz
nixlib-cc70183ceef7abc08a98453b33f9a8b24c3a123e.tar.xz
nixlib-cc70183ceef7abc08a98453b33f9a8b24c3a123e.tar.zst
nixlib-cc70183ceef7abc08a98453b33f9a8b24c3a123e.zip
initrd-network module: initialize network before other pre-LVM commands
This is needed to ensure that network will be initialized before LUKS
passphrase is asked.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/system/boot/initrd-network.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/initrd-network.nix b/nixos/modules/system/boot/initrd-network.nix
index abf88734a558..8ccf56ff6e0d 100644
--- a/nixos/modules/system/boot/initrd-network.nix
+++ b/nixos/modules/system/boot/initrd-network.nix
@@ -65,7 +65,7 @@ in
 
     boot.initrd.preLVMCommands =
       # Search for interface definitions in command line.
-      ''
+      mkBefore ''
         for o in $(cat /proc/cmdline); do
           case $o in
             ip=*)