Currently the rescue image is only set to no-hostonly if it is
generated via dracut-rescue.install. Make the rescue image
generation more predictable and consistent by setting no-hostonly
right in the rescue config.
+++ /dev/null
-dracut_rescue_image="yes"
--- /dev/null
+dracut_rescue_image="yes"
+hostonly="no"
+add_dracutmodules+=" rescue "
+uefi="no"
if [[ ! -f "$BOOT_DIR_ABS/$INITRD" ]]; then
# shellcheck disable=SC2046
- dracut -f --no-hostonly --no-uefi \
- -a "rescue" \
+ dracut -f \
+ --add-confdir rescue \
$([[ $KERNEL_INSTALL_VERBOSE == 1 ]] && echo --verbose) \
--kver "$KERNEL_VERSION" \
"$BOOT_DIR_ABS/$INITRD"