]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat(rescue): move command line arguments to 50-rescue.conf
authorJo Zzsi <jozzsicsataban@gmail.com>
Fri, 13 Sep 2024 16:45:23 +0000 (12:45 -0400)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 19 Sep 2024 12:42:35 +0000 (08:42 -0400)
The benefit of this change is that even if kernel-install
is not used (e.g. direct user invocation), the correct
kernel command line options will be set for the generated
rescue image.

dracut.conf.d/rescue/50-rescue.conf
install.d/51-dracut-rescue.install

index 943e56c9f7eed401268e9e9b6e57308655ec4753..dc5d39825ed42369e000be601a2942afbd5072ed 100644 (file)
@@ -2,3 +2,4 @@ dracut_rescue_image="yes"
 hostonly="no"
 add_dracutmodules+=" rescue "
 uefi="no"
+kernel_cmdline=" rd.auto=1 "
index e04414e1f0053c26b242063a97f4fb2654591237..4ec9e3c5df164bf831dafe2617503662b0cd2ac8 100755 (executable)
@@ -145,7 +145,7 @@ case "$COMMAND" in
                 echo "title      $PRETTY_NAME - Rescue Image"
                 echo "version    $KERNEL_VERSION"
                 echo "machine-id $MACHINE_ID"
-                echo "options    ${BOOT_OPTIONS[*]} rd.auto=1"
+                echo "options    ${BOOT_OPTIONS[*]}"
                 echo "linux      $BOOT_DIR/linux"
                 echo "initrd     $BOOT_DIR/initrd"
             } > "$LOADER_ENTRY"