Bootloader seems to be recurring topic in this form, but I still could not find a suitable answer. I have 3 OpenSUSE 11.3 machines, and none of them seems to be 100% clean as far as bootloader configuration is concerned.
Machine 1 is an appliance, it doesn’t have yast installed. The machine has been cloned in the past, so the UUID of the (only) disk has changed. In order to make it boot I have edited the UUID in /boot/grub/menu.lst
This works until the kernel is updated, then /boot/grub/menu.lst is overwritten and I need to made the change again. Fair enough there is a comment in menu.lst that I should actually edit
/etc/sysconfig/bootloader. However I was unable to find what command to run after editing that file in order to have menu.lst updated.
There are plenty of examples in the Web, and everybody advises to edit menu.lst, the comment in the file saying not to do so is typically nicely visible too…
So I thought I try it out in machine 2, which is a small LXDE installation without any non-standard settings. There in yast’s sysconfig editor I changed the VGA mode (which shouldn’t cause any drastic problems) and saved. I thought this way I would learn, which command to run after editing
/etc/sysconfig/bootloader in machine 1, which has no yast. As activation command sysconfig editor runs /sbin/SuSEconfig. But /boot/grub/menu.lst is not touched at all, timestamp is weeks back. A bug in sysconfig editor???
Machine 3 is a bit more complicated case. I has an encrypted hard-drive and dual boot with Ubuntu. I know that Ubuntu’s grub2 is installed to the MBR and OpenSUSE’s grub to its boot
partition (sda2). It has been installed there by the OpenSUSE installer and nothing has been changed after installation. It all works fine for the moment. Still if I look in yast’s sysconfig
editor the LOADER_LOCATION is empty, and the default value is said to be MBR. I conclude that OpenSUSE configuration tools believe that their bootloader is in the MBR although it is
not. Wonder when that will cause trouble, doesn’t sound like a very stable situation when update scripts etc. are executed.
Sorry, long posting. In summary:
-
Q1: What command to run after editing /etc/sysconfig/bootloader?
-
Q2: Why changes made in sysconfig editor seem to end up in /dev/null
-
Q3: Should I be worried about incorrect configuration in /etc/sysconfig/bootloader although the machine boots nicely and has survived at least one kernel upgrade.