Skip to content

Commit

Permalink
Fix handling of new /boot/loader/entries format in Fedora 41 & tuned.
Browse files Browse the repository at this point in the history
    initrd /initramfs-6.11.5-200.fc40.x86_64.img $tuned_initrd

Here we simply assume the 2nd column as the initrd path.
  • Loading branch information
jwmullally committed Nov 4, 2024
1 parent 0098ebb commit 1ef6d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/init.d/pxe_menu
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ EOF
fi
TITLE="$(sed -n 's/^title[ \t]*\(.*\)/\1/p' $entry)"
KERNEL_PATH="$(sed -n 's/^linux[ \t]*\(.*\)/\1/p' $entry)"
INITRD_PATH="$(sed -n 's/^initrd[ \t]*\(.*\)/\1/p' $entry)"
INITRD_PATH="$(sed -n 's/^initrd[ \t]*\([^ \t]*\).*/\1/p' $entry)"
OPTIONS="$(sed -n 's/^options[ \t]*\(.*\)/\1/p' $entry | sed "$cmdline_sed")"
if [ -n "$TITLE" -a -n "$KERNEL_PATH" -a -n "$INITRD_PATH" ]; then
LABEL="$(basename "$entry")"
Expand Down

0 comments on commit 1ef6d18

Please sign in to comment.