]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - 51-dracut-rescue.install
ask for a password on readkey failure
[thirdparty/dracut.git] / 51-dracut-rescue.install
index 26878929bec7a7c94471930d1d65c031b9c1a971..ef8afac18899c21faf465b562a0f2981b30d8241 100755 (executable)
@@ -71,10 +71,6 @@ if [[ -d "${BOOT_DIR_ABS%/*}" ]]; then
     INITRD="initrd"
 else
     BLS_DIR="/boot/loader/entries"
-    if [ -d /sys/firmware/efi ]; then
-       BLS_DIR="/boot/efi/EFI/${ID}/loader/entries"
-    fi
-
     BOOT_DIR_ABS="/boot"
     LOADER_ENTRY="$BLS_DIR/${MACHINE_ID}-0-rescue.conf"
     KERNEL="vmlinuz-0-rescue-${MACHINE_ID}"
@@ -102,7 +98,7 @@ case "$COMMAND" in
         fi
 
         if [[ ! -f "$BOOT_DIR_ABS/$INITRD" ]]; then
-            dracut --no-hostonly -a "rescue" "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION"
+            dracut -f --no-hostonly -a "rescue" "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION"
             ((ret+=$?))
         fi