]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
rootfs-generator: check for rootok, before doing any action
authorHarald Hoyer <harald@redhat.com>
Mon, 15 Jun 2015 13:28:52 +0000 (15:28 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 23 Jun 2015 13:29:43 +0000 (15:29 +0200)
modules.d/98dracut-systemd/rootfs-generator.sh

index 5910ce75f56ef923aa58326652504ef74a8e1652..670613e5c6265d1243094940fa1894f33a1cb8e0 100755 (executable)
@@ -93,7 +93,7 @@ esac
 
 GENERATOR_DIR="$1"
 
-if [ "${root%%:*}" = "block" ]; then
+if [ "$rootok" = "1"  ]; then
    generator_wait_for_dev "${root#block:}" "$RDRETRY"
    strstr "$(cat /proc/cmdline)" 'root=' || generator_mount_rootfs "${root#block:}" "$(getarg rootfstype=)" "$(getarg rootflags=)"
 fi