[Bug 776221] New: grub legacy: DEFAULT_APPEND and FAILSAFE_APPEND are not preferred to "it try to figure out old parameters"
https://bugzilla.novell.com/show_bug.cgi?id=776221 https://bugzilla.novell.com/show_bug.cgi?id=776221#c0 Summary: grub legacy: DEFAULT_APPEND and FAILSAFE_APPEND are not preferred to "it try to figure out old parameters" Classification: openSUSE Product: openSUSE 12.2 Version: RC 1 Platform: PC OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: mrmazda@earthlink.net QAContact: jsrain@suse.com Found By: --- Blocker: --- Each YaST2/perl-Bootloader-generated menu.lst includes this text: "For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader" It should be the other way around when stanzas for new kernels are created at their installation time. Whatever is specified by DEFAULT_APPEND and FAILSAFE_APPEND (probably *_APPEND, but I've never needed the others) should be on the new kernel lines exactly as to both included parameters and parameter order, including whitespace. I want to see in the GFXmenu edit field exactly what I put in bootloader, so that my keystrokes and potential for mistakes for common boot time edits are minimized. The runlevel integer and one space need to be last so that my most commonly used edit initializes with only two backspaces, so that I can add a new parameter without starting with a space, and so that my second most common edits, changing vga= and/or video= can be initialized with only 3 keystrokes. I was able to get that by setting DEFAULT_VGA and FAILSAFE_VGA to null after initial activities to bug 643984, but this stopped working early in 12.2 development (not just recently in RC1, the earliest option Bugzilla's "found in version" allows me). To reproduce: 1-set in /etc/sysconfig/bootloader: ... DEFAULT_APPEND="ipv4only=1 CPUFREQ=off noresume splash=verbose vga=794 video=1152x864@60 3 " FAILSAFE_APPEND="ipv4only=1 CPUFREQ=off apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=794 3 " ... 2-install new kernel Actual results: 1-new default kernel stanza: kernel /boot/vmlinuz-3.4.6-1.1-desktop root=/dev/disk/by-label/11suse122 showopts ipv4only=1 CPUFREQ=off noresume splash=verbose video=1152x864@60 3 vga=794(EOL) 2-new failsafe kernel stanza: kernel /boot/vmlinuz-3.4.6-1.1-desktop root=/dev/disk/by-label/11suse122 showopts ipv4only=1 CPUFREQ=off apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe 3 vga=794(EOL) Expected results: 1-new default kernel stanza: kernel /boot/vmlinuz-3.4.6-1.1-desktop root=/dev/disk/by-label/11suse122 ipv4only=1 CPUFREQ=off noresume splash=verbose vga=794 video=1152x864@60 3 (EOL) 2-new failsafe kernel stanza: kernel /boot/vmlinuz-3.4.6-1.1-desktop root=/dev/disk/by-label/11suse122 ipv4only=1 CPUFREQ=off apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=794 3 (EOL) Comments: 1-showopts is missing from my DEFAULT_APPEND and FAILSAFE_APPEND because YaST2/perl-Bootloader insist it fall after root=, so I put it where I want it in front of root= for both after new kernel installation is complete. 2-bug 754332 noted, but I won't be using Grub2 before it matures well beyond genuine v1.0 aka 2.0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776221 https://bugzilla.novell.com/show_bug.cgi?id=776221#c1 Jiri Srain <jsrain@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@suse.com |snwint@suse.com --- Comment #1 from Jiri Srain <jsrain@suse.com> 2012-08-17 08:01:18 UTC --- Felix, I can assure you that when it was the other way around, there were people complaining about it as well. When you do kernel update, you expect that /boot/grub/menu.lst contains exactly the same as it contained before (like if only the kernel file name was changed). Which is exactly what current behavior is. Therefore, I suggest not to change the behavior. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776221 https://bugzilla.novell.com/show_bug.cgi?id=776221#c2 --- Comment #2 from Steffen Winterfeldt <snwint@suse.com> 2012-08-17 11:45:03 CEST --- Felix, to sum this up, your point is that it shouldn't treat 'vga' special? Hm, not sure why it does this, but note that for grub2 'vga' isn't used at all. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776221 https://bugzilla.novell.com/show_bug.cgi?id=776221#c3 --- Comment #3 from Felix Miata <mrmazda@earthlink.net> 2012-08-17 16:42:17 UTC --- (In reply to comment #1)
When you do kernel update, you expect that /boot/grub/menu.lst contains exactly the same as it contained before (like if only the kernel file name was changed).
If that's what actually happened it wouldn't bother me as much, but it doesn't do that either. If it's supposed to be that way, then DEFAULT_APPEND and FAILSAFE_APPEND need to be retired from /etc/sysconfig/bootloader. As long as they exist, I expect changes made there to be implemented in stanzas for subsequently installed kernels. (In reply to comment #2)
Felix, to sum this up, your point is that it shouldn't treat 'vga' special?
Not the whole story. The extra cmdline whitespace that special treatment creates, and the bonus newlines between stanzas, are annoying. I cannot accept its new menu.lst as-is either, as it's refused no matter what I've tried to put showopts where I want it ahead of root=. Without that, when I want to test an alternative root=, I have to leave GFXmenu, which wouldn't be so bad except that color white/blue cyan/light-gray always gets neutered by YaST2/perl-Bootloader. Just as annoying is how it assumes the new kernel should be the default and first listed. That's only exactly the case on my systems immediately after a fresh installation. On my systems the default is first listed, but its name is vmlinuz. Period. New kernel installation always moves this default down to third stanza position. In those menu.lsts with prior installed kernels, the second entry is for a kernel named vmlinuz-prev, which is a symlink to whatever kernel was installed prior to the latest installed. It gets moved to fourth position. So, a typical menu.lst on one of my systems starts out as follows: ... default 0 title openSUSE 12.2 - defkernel root (hd0,9) kernel /boot/vmlinuz showopts root=LABEL=10factory noresume splash=verbose ipv4only=1 video=1152x864 vga=794 3 initrd /boot/initrd title openSUSE 12.2 - prevkernel root (hd0,9) kernel /boot/vmlinuz-prev showopts root=LABEL=10factory noresume splash=verbose ipv4only=1 video=1152x864 vga=794 3 initrd /boot/initrd-prev ###Don't change this comment - YaST2 identifier: Original name: linux### title Desktop -- openSUSE 12.2 - 3.4.2-1 root (hd0,9) kernel /boot/vmlinuz-3.4.2-1-desktop showopts root=/dev/disk/by-label/10factory ipv4only=1 noresume splash=verbose video=1152x864 vga=794 3 initrd /boot/initrd-3.4.2-1-desktop ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 12.2 - 3.4.2-1 root (hd0,9) kernel /boot/vmlinuz-3.4.2-1-desktop showopts root=/dev/disk/by-label/10factory ipv4only=1 apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=791 3 initrd /boot/initrd-3.4.2-1-desktop ... After the next kernel install, menu.lst would look like this: ... default 0 ###Don't change this comment - YaST2 identifier: Original name: linux### title Desktop -- openSUSE 12.2 - 3.4.6.1 root (hd0,9) kernel /boot/vmlinuz-3.4.6.1-desktop root=/dev/disk/by-label/10factory ipv4only=1 noresume splash=verbose video=1152x864 3 showopts vga=794 initrd /boot/initrd-3.4.6.1-desktop ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 12.2 - 3.4.6.1 root (hd0,9) kernel /boot/vmlinuz-3.4.6.1-desktop root=/dev/disk/by-label/10factory showopts ipv4only=1 apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe 3 vga=791 initrd /boot/initrd-3.4.6.1-desktop title openSUSE 12.1 - defkernel root (hd0,9) kernel /boot/vmlinuz showopts root=LABEL=10factory noresume splash=verbose ipv4only=1 video=1152x864 vga=794 3 initrd /boot/initrd title openSUSE 12.1 - prevkernel root (hd0,9) kernel /boot/vmlinuz-prev showopts root=LABEL=10factory noresume splash=verbose ipv4only=1 video=1152x864 vga=794 3 initrd /boot/initrd-prev ... Lord only knows what the first stanzas would look like if I had first made changes to DEFAULT_APPEND and/or FAILSAFE_APPEND, but the usual result is whatever I've added there is not migrated into any new stanzas.
Hm, not sure why it does this, but note that for grub2 'vga' isn't used at all.
Grub2 needs a *lot* more maturing, and more so its docs, before I'll be willing to more than dabble with its use. It's much more complicated, mostly with things I have no use for and no ability to recognize bugs in. Grub Legacy by comparison is absolutely easy, and for the foreseeable future does all I need from a bootloader well enough. Grub2 for me can and will wait until such time as I need GPT support or find something it has that I must have that outweighs the pain of its complexity. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776221 https://bugzilla.novell.com/show_bug.cgi?id=776221#c Ihno Krumreich <ihno@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Other |openSUSE 12.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776221 https://bugzilla.novell.com/show_bug.cgi?id=776221#c4 Felix Miata <mrmazda@earthlink.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Bootloader |Bootloader Version|RC 1 |Final Product|openSUSE 12.2 |openSUSE 12.3 --- Comment #4 from Felix Miata <mrmazda@earthlink.net> 2013-03-13 09:30:32 UTC --- still applicable to current release -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com