summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorPetr Rockai <me@mornfall.net>2014-02-03 23:25:24 +0100
committerPetr Rockai <me@mornfall.net>2014-02-15 12:57:17 +0100
commit42ce480a52c52ad5c3d5744830e7871483147a04 (patch)
treec1d95c6aa0f91799d2ce433b3062e9811b25ca67 /nixos/modules
parenta4e3f362feacb421d3f15dc3b75e44d6a8a11df3 (diff)
downloadnixlib-42ce480a52c52ad5c3d5744830e7871483147a04.tar
nixlib-42ce480a52c52ad5c3d5744830e7871483147a04.tar.gz
nixlib-42ce480a52c52ad5c3d5744830e7871483147a04.tar.bz2
nixlib-42ce480a52c52ad5c3d5744830e7871483147a04.tar.lz
nixlib-42ce480a52c52ad5c3d5744830e7871483147a04.tar.xz
nixlib-42ce480a52c52ad5c3d5744830e7871483147a04.tar.zst
nixlib-42ce480a52c52ad5c3d5744830e7871483147a04.zip
nixos: Try harder to get LVM-hosted filesystems up in stage1.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/system/boot/stage-1-init.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh
index 1f65026b5def..97c688ce5902 100644
--- a/nixos/modules/system/boot/stage-1-init.sh
+++ b/nixos/modules/system/boot/stage-1-init.sh
@@ -320,6 +320,10 @@ while read -u 3 mountPoint; do
         echo -n "waiting for device $device to appear..."
         for try in $(seq 1 20); do
             sleep 1
+            # also re-try lvm activation now that new block devices might have appeared
+            lvm vgchange -ay
+            # and tell udev to create nodes for the new LVs
+            udevadm trigger --action=add
             if test -e $device; then break; fi
             echo -n "."
         done