[Bug 1084017] New: YaST in Leap 15 fails to set boot flags correctly
http://bugzilla.suse.com/show_bug.cgi?id=1084017 Bug ID: 1084017 Summary: YaST in Leap 15 fails to set boot flags correctly Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: x86-64 OS: Other Status: NEW Severity: Major Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: Larry.Finger@lwfinger.net QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 762755 --> http://bugzilla.suse.com/attachment.cgi?id=762755&action=edit Compressed YaST2 logs My system has a GPT partitioning scheme and does not use EFI. I also put the boot block at the start of the active partition, and have generic boot code in the MBR. The active partition is indicated with the legacy_boot flag. A partial df for the system is: Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 60213124 9954072 47170668 18% / /dev/sda6 53826316 32795236 20576144 62% /var/tmp /dev/sda7 51255784 20631016 28050216 43% /TW /dev/sda4 60344404 22760752 36522788 39% /Leap42.3 /dev/sda5 711705020 393141448 282387980 59% /home tmpfs 809360 20 809340 1% /run/user/1000 Looking at the partitions with parted: GNU Parted 3.2 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ATA Samsung SSD 850 (scsi) Disk /dev/sda: 1024GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: pmbr_boot Number Start End Size File system Name Flags 1 1049kB 9437kB 8389kB bios_grub 2 9437kB 16.8GB 16.8GB linux-swap(v1) swap 3 16.8GB 79.7GB 62.9GB ext4 4 79.7GB 143GB 62.9GB ext4 msftdata 5 143GB 883GB 741GB ext4 msftdata 6 883GB 939GB 56.1GB ext4 msftdata 8 939GB 971GB 31.5GB ext4 7 971GB 1024GB 53.5GB ext4 legacy_boot, msftdata (parted) quit In this case, partition number 7 will be booted. Running YaST => System => Boot Loader changes nothing. If I want the automatic boot to choose Leap 15.0, I need to manually toggle the legacy_boot flag on partitions 7 and 3. Attached is a compressed copy of the /var/log/YaST2/ directory. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c1 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jreidinger@suse.com, | |snwint@suse.com Flags| |needinfo?(jreidinger@suse.c | |om) --- Comment #1 from Steffen Winterfeldt <snwint@suse.com> --- Hm, it says: bootloader/mbr_update.rb:20 Stage1: <Bootloader::Stage1 24137560 activate: false generic_mbr: true devices: ["/dev/sda3"]> I wonder if this 'activate: false' is the correct thing. Josef? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c2 --- Comment #2 from Josef Reidinger <jreidinger@suse.com> --- (In reply to Steffen Winterfeldt from comment #1)
Hm, it says:
bootloader/mbr_update.rb:20 Stage1: <Bootloader::Stage1 24137560 activate: false generic_mbr: true devices: ["/dev/sda3"]>
I wonder if this 'activate: false' is the correct thing.
Josef?
yes, it looks like root of issue as legacy boot is at sda7, but it should be on 3. I have to check logs why it is not proposed to activate it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c3 Josef Reidinger <jreidinger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Larry.Finger@lwfinger.net Flags|needinfo?(jreidinger@suse.c |needinfo?(Larry.Finger@lwfi |om) |nger.net) --- Comment #3 from Josef Reidinger <jreidinger@suse.com> --- OK, I check logs and this is logs only from running system. I will need logs from that installation. Can you upload complete logs? You can get it with command `save_y2logs` that creates tarball for you and it should include also installation logs ( unless it is already rotated away ). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c4 --- Comment #4 from Larry Finger <Larry.Finger@lwfinger.net> --- If the installation logs were not in the file I posted, then they must have been rotated away. One thing to note. In addition to failure to set the boot_legacy flag on installation, YaST2 => System => Boot Loader was failing to change those flags. That has now been fixed, and the problem on installation may also be fixed. When I get some time, I will reinstall the latest snapshot of Leap 15 and test if the boot flags are set properly. If not, I will then have the logs. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c5 Larry Finger <Larry.Finger@lwfinger.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(Larry.Finger@lwfi | |nger.net) | --- Comment #5 from Larry Finger <Larry.Finger@lwfinger.net> --- Created attachment 763161 --> http://bugzilla.suse.com/attachment.cgi?id=763161&action=edit Saved YaST2 logs from installation I reinstalled from scratch using Build 151.1. As before, I had partition 7 with the legacy_boot flag set. After finishing the installation, that partition still had the flag set. If I selected the new Leap 15 installation for booting, I was then able to use the YaST2 => System => Boot Loader page to manipulate that flag. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c6 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(jreidinger@suse.c | |om) --- Comment #6 from Steffen Winterfeldt <snwint@suse.com> --- Josef, there are new logs. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c7 Josef Reidinger <jreidinger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsrain@suse.com Flags|needinfo?(jreidinger@suse.c |needinfo?(jsrain@suse.com) |om) | --- Comment #7 from Josef Reidinger <jreidinger@suse.com> --- Thanks for logs. Now it is clear for me what happened. Original proposal is boot from MBR and do not activate, because disk already have legacy_boot flag ( grub2 does not use it and for firmware any partition already marked is fine ). Then customer switched to boot from boot and we just change device for stage1,, but not setting for generic_mbr neither activate. That is reason why bootloader write warning: 2018-03-08 14:27:16 <1> install(3612) [Ruby] installation/proposal_runner.rb:514 proposal returns warning with level error and msg The installer will not modify the MBR of the disk. Unless it already contains boot code, the BIOS won't be able to boot from this disk. So question is if we should modify behavior and when boot from partition is pressed, if we should automatic mark generic_mbr to true and also activate? Jiri - what is your opinion on it? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c8 Jiri Srain <jsrain@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(jsrain@suse.com) | --- Comment #8 from Jiri Srain <jsrain@suse.com> --- I'm a bit hesitant to change the values automatically - but on the other hand for users not knowing the details, this can lead to situations like this. I would consider: When changing the Stage1 location from MBR to partition, ask user whether to put the generic code to MBR and activate the partition - unless those check-boxes are already checked. This should give users enough hints while avoiding the surprise of rewritten MBR. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c9 --- Comment #9 from Josef Reidinger <jreidinger@suse.com> --- Well, disadvantage is that when we ask user in popup it basically kills idea of one click change of proposal. In such case I think that even changing it automatically is better and if user want more control he can always use full bootloader. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c10 --- Comment #10 from Jiri Srain <jsrain@suse.com> --- OK, then go ahead as you suggest. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1084017 http://bugzilla.suse.com/show_bug.cgi?id=1084017#c11 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |CONFIRMED URL| |https://trello.com/c/K3qhjB | |6l Assignee|yast2-maintainers@suse.de |yast-internal@suse.de --- Comment #11 from Steffen Winterfeldt <snwint@suse.com> --- Tracking in YaST scrum board. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1084017 Stefan Hundhammer <shundhammer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Normal -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1084017 Stefan Hundhammer <shundhammer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(jreidinger@suse.c | |om) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1084017 https://bugzilla.suse.com/show_bug.cgi?id=1084017#c13 --- Comment #13 from Larry Finger <Larry.Finger@gmail.com> --- Josef: What info is needed? Since my last contribution, I have not had any problems with setting the boot on this system. Larry -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1084017 https://bugzilla.suse.com/show_bug.cgi?id=1084017#c14 Josef Reidinger <jreidinger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(jreidinger@suse.c | |om) | --- Comment #14 from Josef Reidinger <jreidinger@suse.com> --- well, info was set to me. And to answer question if it is still relevant, answer is yes, as code is not changed at https://github.com/yast/yast-bootloader/blob/master/src/lib/bootloader/propo... where it will need probably distinguish if mbr or partition is set and adapt generic boot code and boot flag accordingly. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com