Hi! This is the patch updated to grub 0.95+cvs20040624-17.
I do hope that after the release of Sarge someone will finally get around to make the time to apply these few lines, or at least let me know whether there's a good reason not to do so. It's really frustrating to see new revisions of grub without this patch but still not getting the slightest bit of feedback. Georg -- Georg Wittenburg http://page.mi.fu-berlin.de/~wittenbu/ --- update-grub.orig 2005-05-31 20:29:47.000000000 +0200 +++ update-grub 2005-05-31 20:33:11.000000000 +0200 @@ -291,6 +291,10 @@ # should grub lock the alternative boot options in the menu lockalternative="false" +# additional options to use with the default boot option, but not with the +# alternatives + defoptions="" + # options to use with the alternative boot options altoptions="(recovery mode) single" @@ -613,6 +617,9 @@ # Extract the lockalternative value lockalternative=$(GetMenuOpt "lockalternative" "$lockalternative") +# Extract the additional default options +defoptions=$(GetMenuOpt "defoptions" "$defoptions") + # Extract the howmany value howmany=$(GetMenuOpt "howmany" "$howmany") @@ -657,6 +664,12 @@ echo "# lockalternative=$lockalternative" >> $buffer echo >> $buffer +echo "## additional options to use with the default boot option, but not with the" >> $buffer +echo "## alternatives" >> $buffer +echo "## e.g. defoptions=vga=0x305 resume=/dev/hda5" >> $buffer +echo "# defoptions=$defoptions" >> $buffer +echo >> $buffer + echo "## altoption boot targets option" >> $buffer echo "## multiple altoptions lines are allowed" >> $buffer echo "## e.g. altoptions=(extra menu suffix) extra boot options" >> $buffer @@ -772,7 +785,7 @@ currentOpt=$(get_kernel_opt $kernelVersion) write_kernel_entry "$kernelVersion" "" "" "$grub_root_device" "$kernel" \ - "$currentOpt" "" "$initrd" "true" + "$currentOpt" "$defoptions" "$initrd" "true" # insert the alternative boot options if test ! x"$alternative" = x"false" ; then
pgpjBnIfUwGJd.pgp
Description: PGP signature