]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fips: fixed "boot=<dev>" handling
authorHarald Hoyer <harald@redhat.com>
Wed, 30 Mar 2011 12:50:42 +0000 (14:50 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 30 Mar 2011 12:57:01 +0000 (14:57 +0200)
modules.d/01fips/fips.sh

index febe23e99df1816b917de0628e4f0649dc03456a..857c35598d3da4ee6df946401978574fd7f95600 100755 (executable)
@@ -4,20 +4,18 @@
 do_fips()
 {
     FIPSMODULES=$(cat /etc/fipsmodules)
-    BOOT=$(getarg boot=)
+    boot=$(getarg boot=)
     KERNEL=$(uname -r)
     case "$boot" in
-        block:LABEL=*|LABEL=*)
-            boot="${boot#block:}"
+        LABEL=*)
             boot="$(echo $boot | sed 's,/,\\x2f,g')"
             boot="/dev/disk/by-label/${boot#LABEL=}"
-            bootok=1 ;;
-        block:UUID=*|UUID=*)
-            boot="${boot#block:}"
-            boot="/dev/disk/by-uuid/${root#UUID=}"
-            bootok=1 ;;
+            ;;
+        UUID=*)
+            boot="/dev/disk/by-uuid/${boot#UUID=}"
+            ;;
         /dev/*)
-            bootok=1 ;;
+            ;;
         *)
             die "You have to specify boot=<boot device> as a boot option for fips=1" ;;
     esac