[Bug 812266] New: Yast live CD installer ignores /etc/default/grub
https://bugzilla.novell.com/show_bug.cgi?id=812266 https://bugzilla.novell.com/show_bug.cgi?id=812266#c0 Summary: Yast live CD installer ignores /etc/default/grub Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: mchang@suse.com ReportedBy: thardeck@suse.com QAContact: jsrain@suse.com Found By: --- Blocker: --- The Yast live CD installer ignores changes in /etc/default/grub and seems to create the file from scratch after installation. This behavior does prevent adaptations by appliances. -- 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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c1
--- Comment #1 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c2
--- Comment #2 from Tim Hardeck
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c3
--- Comment #3 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c4
--- Comment #4 from Tim Hardeck
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c5
--- Comment #5 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c6
Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c7
--- Comment #7 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c8
--- Comment #8 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c9
--- Comment #9 from Neil Rickert
For #1 #2 .. Are they regression to 12.3 ? ..
I'm not sure. My installs of 12.3 final were to an encrypted LVM, where I don't need to change that "resume=" line. My best recollection, which could be wrong, is that I did have the same problem when I experimentally installed the education version openSUSE-Edu-li-f-e-12.3-1-i686.iso As for the GRUB_DISTRIBUTOR - I can't be sure on that either. For the installation where I used "opensuse_alt", I originally installed as "opensuse" and only changed that later when the conflict caused me problems. The GRUB_DISTRIBUTOR is the important one for me. If that is not right, then things will break for every install of a milestone or beta release. Perhaps I should take preemptive action and change the distributor name of my main 12.3 install, so that future installs won't conflict with that. -- 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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c10
--- Comment #10 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c11
--- Comment #11 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c12
--- Comment #12 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c13
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c14
--- Comment #14 from Andrey Borzenkov
We can proceed by introducing a new --refresh-config
Well, forcible reinstallation of bootloader was itself added as result of other bug reports Fri Apr 27 12:06:09 CEST 2012 - mchang@suse.de - fix after grub2 package update, the system become unbootable. (bnc#758570) And if (defined $oper{refresh}) { # Always set $avoid_init=0 to guarentee bootloader installed (bnc#759224) my $ret = UpdateBootloader(0); exit 1 if ( !$ret ); } So the first question is - are conditions in these bug reports still apply? Or was it just papering over real problems in the first place? -- 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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c15
--- Comment #15 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c16
--- Comment #16 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c17
--- Comment #17 from Steffen Winterfeldt
Did you have any concern we implement comment#12 in 13.1 ?
I think it's confusing. The user should not need to know the bootloader type in use. I would keep '--refresh' doing what it should, that is, update the config and reinstall the loader _if needed_. We might add '--reinstall' and '--refresh-config' options that make it more clear what's actually done, though. -- 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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c18
--- Comment #18 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c19
--- Comment #19 from Andrey Borzenkov
update-bootloader --refresh && update-bootloader --reinstall || true
May be just update-bootloader --refresh --reinstall || true? -- 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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c20
--- Comment #20 from Neil Rickert
are come from the old age of lilo which requires reinstall bootloader each time you update a config.
I did use lilo for many years -- approx 1995-2006. And I had to frequently reinstall lilo for just about anything. However, since suse 10.1 through opensuse 12.1, I used grub legacy, which was never unnecessarily reinstalled. It seemed to work well without any reinstall (just an update of menu.lst). I have also experimented with Mint and Fedora, which seem to manage without a grub2 reinstall. Andrey mentioned that the change originated with bug 758570. However, I see that was for an update to grub2 itself. It makes sense to reinstall when grub2 is updated. And maybe updating the boot loader with Yast should reinstall, or at least have a reinstall option. But it does not make sense to reinstall grub whenever a kernel is updated or when some other software update requires initrd to be rebuilt - updating "grub.cfg" should be sufficient in those cases. I can manage either way. But my concern is for non-technical users who have trouble coping with the side-effects of grub reinstall. Many want to leave their system booting Windows by default, and accessing linux via the Windows boot manager. That breaks whenever grub is reinstalled. And then there are the problems of getting a good boot procedure for UEFI, and having to redo that for every update. -- 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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c21
--- Comment #21 from Michael Chang
I did use lilo for many years -- approx 1995-2006. And I had to frequently reinstall lilo for just about anything.
However, since suse 10.1 through opensuse 12.1, I used grub legacy, which was never unnecessarily reinstalled. It seemed to work well without any reinstall (just an update of menu.lst). I have also experimented with Mint and Fedora, which seem to manage without a grub2 reinstall.
Yes, I found that grub legacy ignored the avoid_init flag and will only update the config. This makes our plan to implement a reintall which will set avoid_init=0 wont work to it. But I think not too many would care about that as calling grub-install is easy enough to overcome it.
Andrey mentioned that the change originated with bug 758570. However, I see that was for an update to grub2 itself. It makes sense to reinstall when grub2 is updated. And maybe updating the boot loader with Yast should reinstall, or at least have a reinstall option. But it does not make sense to reinstall grub whenever a kernel is updated or when some other software update requires initrd to be rebuilt - updating "grub.cfg" should be sufficient in those cases.
Yes. I agree with you and Andrey.
I can manage either way. But my concern is for non-technical users who have trouble coping with the side-effects of grub reinstall. Many want to leave their system booting Windows by default, and accessing linux via the Windows boot manager. That breaks whenever grub is reinstalled. And then there are the problems of getting a good boot procedure for UEFI, and having to redo that for every update.
Thanks. Good and strong reason to backing the change. -- 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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c22
--- Comment #22 from Michael Chang
update-bootloader --refresh --reinstall || true?
When posting the command I'm a bit not certain update-bootloader could handle more than one command at a time, since it can do that I think yours is better. Now the problem is that I found no easy way to implement pure reinstall without touching refreshing config. The avoid_init=(0|1) will either update config only or performing both reinstall and renew the config. Therefore a naming like reinit could be more suitable. It now looks like --refresh : update config (avoid_init=1) --reinit : update config and reintall (avoid_init=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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c23
--- Comment #23 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c24
--- Comment #24 from Andrey Borzenkov
And the other patch to deal with the grub2 reintall problem
https://github.com/WenhuaChang/perl-bootloader/commit/7f907101c08eecb34594a0...
Please, update also POD ... --reinit is missing. --><-- operation is one of --add, --remove or --refresh. --><-- I think it needs clarification to explain difference between --refresh and --reinit. -- 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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c25
--- Comment #25 from Michael Chang
Please, update also POD ... --reinit is missing.
--><-- operation is one of --add, --remove or --refresh. --><--
I think it needs clarification to explain difference between --refresh and --reinit.
Thanks. I'm done. -- 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=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c26
--- Comment #26 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c
Alberto Planas Dominguez
https://bugzilla.novell.com/show_bug.cgi?id=812266
https://bugzilla.novell.com/show_bug.cgi?id=812266#c27
Michael Chang
participants (1)
-
bugzilla_noreply@novell.com