PGNet Dev napsal(a):
> 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)
> 
> 

Because it is not correct, root set device to which is write relative
path in section. it must be partition not disc.

> (2) write the kernel/initrd entries as
> 
>               kernel /boot/vmlinuz...
>               initrd /boot/initrd...
> 
> not,
> 
>               kernel /vmlinuz...
>               initrd /initrd...
> 
> 

Because you have separated boot partition and perl-Bootloader detect it
and correctly write section. It cannot be modified...only option is
change fstab to not include separate /boot
JR

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to