From 42ce480a52c52ad5c3d5744830e7871483147a04 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Mon, 3 Feb 2014 23:25:24 +0100 Subject: [PATCH] nixos: Try harder to get LVM-hosted filesystems up in stage1. --- nixos/modules/system/boot/stage-1-init.sh | 4 ++++ 1 file changed, 4 insertions(+) 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