Mailinglist Archive: opensuse (1473 mails)

< Previous Next >
[opensuse] how to config bootloader/grub to correctly write menu.lst modifications at kernel upgrades?
  • From: PGNet Dev <pgnet.dev+osusr@xxxxxxxxx>
  • Date: Thu, 25 Jun 2009 14:24:53 -0700
  • Message-id: <94f2e81e0906251424h782f983fkac378d06571abd1d@xxxxxxxxxxxxxx>
This is not a development issue. You might want to take this to the user
list for support.

Well, ok then. Re-posting here ...

---------- Forwarded message ----------
Subject: how to config bootloader/grub to correctly write menu.lst
modifications at kernel upgrades?
To: yast-devel@xxxxxxxxxxxx


starting with a grub menu.lst,

 cat /boot/grub/menu.lst
       default 0
       timeout 8
       gfxmenu (hd0)/boot/message

       title PVGRUB
               root (hd0)
               kernel /boot/vmlinuz-2.6.27.25-9-xen root=/dev/xvdc
resume=/dev/xvdb
kbdtype=us text nofb selinux=0 edd=off splash=silent noshell showopts
               initrd /boot/initrd-2.6.27.25-9-xen

after a/any zypper kernel upgrade, menu.lst is modified, e.g., to,

 cat /boot/grub/menu.lst
       # Modified by YaST2. Last modification on Thu Jun 25 16:43:29 EDT 2009
       default 2
       timeout 8
       gfxmenu (hd0)/boot/message

       ###Don't change this comment - YaST2 identifier: Original name: linux###
       title Xen -- openSUSE 11.1 - 2.6.27.25-10 (xen)
               root (hd0,0)
               kernel /vmlinuz-2.6.27.25-10-xen root=/dev/xvdc resume=/dev/xvdb
kbdtype=us text nofb selinux=0 edd=off splash=silent noshell showopts
               initrd /initrd-2.6.27.25-10-xen

       ###Don't change this comment - YaST2 identifier: Original name: linux###
       title Xen -- openSUSE 11.1 - 2.6.27.25-10 (xen)
               kernel (hd0,0)/vmlinuz-2.6.27.25-10-xen root=/dev/xvdc
resume=/dev/xvdb kbdtype=us text nofb selinux=0 edd=off splash=silent
noshell showopts
               initrd (hd0,0)/initrd-2.6.27.25-10-xen

       title PVGRUB
               root (hd0)
               kernel /boot/vmlinuz-2.6.27.25-9-xen root=/dev/xvdc
resume=/dev/xvdb
kbdtype=us text nofb selinux=0 edd=off splash=silent noshell showopts
               initrd /boot/initrd-2.6.27.25-9-xen


what specific config changes do i need to make to get the newly
written configs to:

(1) correctly use/write,

               root (hd0)

       instead of

               root (hd0,0)


(2) write the kernel/initrd entries as

               kernel /boot/vmlinuz...
               initrd /boot/initrd...

not,

               kernel /vmlinuz...
               initrd /initrd...


fyi, config files, as default-installed are,

       /etc/sysconfig/bootloader
               ## Path:        System/Bootloader
               ## Description: Bootloader configuration
               ## Type:        list(grub,lilo,none)
               ## Default:     grub
               LOADER_TYPE="grub"


               ## Path:        System/Bootloader
               ## Description: Bootloader configuration
               ## Type:        list(floppy,mbr,root,boot,custom,none)
               ## Default:     mbr
               #
               # Location of boot loader.
               # For making the change effect run bootloader configuration tool
               #
               #
               LOADER_LOCATION=""

       /etc/grub
               setup --stage2=/boot/grub/stage2 (hd0,0) (hd0,0)
               quit


thanks!
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages