[prev in list] [next in list] [prev in thread] [next in thread] 

List:       suse-autoinstall
Subject:    Re: [opensuse-autoinstall] openSUSE 11.0: Booting from USB stick
From:       Bernd Nies <listuser () adnovum ! ch>
Date:       2008-11-03 11:49:28
Message-ID: 490EE548.3090808 () adnovum ! ch
[Download RAW message or body]

Hi,

Uwe Gansert wrote:
> no, there is no way that I know of.
> Did you try a static bootloader config in the XML file?

No. I couldn't find an example here or produce one with yast.
http://www.suse.com/~ug/autoyast_doc/CreateProfile.Bootloader.html

>> The only I can think of is a chroot script that modifies /etc/grub.conf
>> /boot/grub/device.map, /boot/grub/menu.lst and run grub-install.
> 
> that's an option too
> 

I created the following chroot script to fix this issue:

==CUT==
     # Fix following issues:
     # (1) When booting from an USB stick for installation then GRUB
     # labels the devices wrong - even after the USB stick is removed.
     # /dev/sda becomes hd1 and /dev/sdb becomes hd1. Detect and fix
     # this.
     #
     # (2) System hangs at reboot when installing 32bit Linux on dual
     # core CPU Dell Precision 490. Append 'reboot=b' to the kernel.

     cp -f /boot/grub/device.map /boot/grub/device.map.org
     cp -f /boot/grub/menu.lst   /boot/grub/menu.lst.org
     cp -f /etc/grub.conf       /etc/grub.conf.org

     sed -re '
       s:^\(hd1\)(.*/dev/(hda|sda)):(hd0)\1:
       ' /boot/grub/device.map.org > /boot/grub/device.map

     sed -re '
       s/\(hd1,([0-9]+)\)/(hd0,\1)/g
       ' /etc/grub.conf.org > /etc/grub.conf

     sed -re '
       s/\(hd1,([0-9]+)\)/(hd0,\1)/g;
       s/ *reboot=b/reboot=b/;
       s/^ *kernel.*/\0 reboot=b/;
       ' /boot/grub/menu.lst.org > /boot/grub/menu.lst

     chmod 600 /etc/grub.conf
     chmod 600 /boot/grub/device.map
     chmod 600 /boot/grub/menu.lst
==CUT==


Bye,
Bernd
-- 
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic