]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
51-dracut-rescue.install: fixed /proc/cmdline read
authorHarald Hoyer <harald@redhat.com>
Fri, 15 Aug 2014 12:56:42 +0000 (14:56 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 15 Aug 2014 12:56:59 +0000 (14:56 +0200)
51-dracut-rescue.install

index b655bc26471f7cdeae2785aae77ca529af547498..677805a5f151ce1293b69f44ba98544ca92ed9f2 100755 (executable)
@@ -45,7 +45,7 @@ if [[ -f /etc/kernel/cmdline ]]; then
     readarray -t BOOT_OPTIONS < /etc/kernel/cmdline
 fi
 if ! [[ "${BOOT_OPTIONS[@]}" ]]; then
-    readarray -t BOOT_OPTIONS < /proc/cmdline
+    read -ar BOOT_OPTIONS < /proc/cmdline
 fi
 if ! [[ $BOOT_OPTIONS ]]; then
     exit 1
@@ -75,7 +75,7 @@ case "$COMMAND" in
             echo "Can't copy '$KERNEL_IMAGE to '$BOOT_DIR_ABS/linux'!" >&2
         fi
 
-        dracut --no-hostonly  -a "rescue" "$BOOT_DIR_ABS"/initrd "$2"
+        dracut --no-hostonly -a "rescue" "$BOOT_DIR_ABS"/initrd "$KERNEL_VERSION"
         ((ret+=$?))
 
         {