nixos: Try harder to get LVM-hosted filesystems up in stage1.

This commit is contained in:
Petr Rockai 2014-02-03 23:25:24 +01:00
parent a4e3f362fe
commit 42ce480a52

View File

@ -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