Yast Boot Loader fails with Exit code 1 invalid token legacy_boot

Hello,

I am having trouble after updating my system. I am using openSUSE 42.2
and after running the Boot Loader in YaST I receive an error:

“Execution of command
“”/usr/sbin/parted”,"-s",“set”,“1”,“legacy_boot”,“on”"]]" failed.
Exit code 1
Error output: /usr/sbin/parted: invalid token: legacy_boot

If anyone can offer any advice on how to fix this I would appreciate it.

My disk is MBR and Grub was installed to the MBR. I am also using grub
do boot different systams such as Windows 7 and Ubuntu.

Thank you,

Eric

“legacy_boot” flag is defined only for GPT. If you are sure your disks are MBR, this sounds like a bug in YaST that you need to report. In Leap 42.2 YaST should be selecting correct flag depending on whether disk is MBR or GPT.

On 02/25/2017 10:56 PM, arvidjaar wrote:
>
> Eric;2814042 Wrote:
>> My disk is MBR
> “legacy_boot” flag is defined only for GPT. If you are sure your disks
> are MBR, this sounds like a bug in YaST that you need to report. In Leap
> 42.2 YaST should be selecting correct flag depending on whether disk is
> MBR or GPT.
>
>
OK, thank you.

I fixed it the hard way by using a live ubuntu disk I had available and
“chroot” into the ubuntu system I had installed earlier.

I followed the directions at:

https://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/

Then using grub from the ubuntu OS I booted into openSUSE and installed
grub by using the command line as root and entering:

grub2-install /dev/sda

No errors occured and my opesSUSE grub is working fine now which looks
much better then the standard Ubuntu version.

I will report a bug if it happens again and I have to go through this again.

Thank you,

Eric