[opensuse-autoinstall] bootloader problem
Hi all, I have a bit of a wirdness in OpenSuSE 11.3 autoyast that I need some help with. It's the bootloader definitions in /boot/grub/menu.lst that seems to get messed up at some point. My configuration involves LVM and RAID 1 on 3 disks, see relevant autoinst.xml parts below. Now, what happens is that the boot disk partition definition gets messed up in a rather random way. It starts out as being "(hd0,0)", but then along the way, it gets replaced with "(hd0,<garbage>)" where <garbage> becoms a sequence of random digits, e.g. 8 or 28376, or 941 or something completely irrelevant. I've tried to fix this with a simple postpartitioning-script, chroot-script, post-script, and init-script, but there's always one point (I do believe it's the second reboot, i.e. after the chroot-scripts being executed, but before the post-scripts get executed) where the "(hd0,0)" gets clogged up that prevents the boot. I have to enter the grub menu and edit the offendig lines manually. Then, in the installed system, I need to permanent the changes by editing the offending lines again, this time using vi in the running system. The problem manifests itself when using 3 disk setup with RAID 1, but not with 3 disks under LVM without RAID 1. Other than that, everything seems just fine. Any ideas, anyone? R /Lars Stavholm --- Begin Included Message --- [snip] <bootloader> <global> <activate>true</activate> <boot_custom>/dev/md0</boot_custom> <boot_mbr>true</boot_mbr> <generic_mbr>true</generic_mbr> <timeout config:type="integer">5</timeout> </global> <loader_type>grub</loader_type> </bootloader> [snip] <partitioning config:type="list"> <drive> <initialize config:type="boolean">true</initialize> <device>/dev/md</device> <partitions config:type="list"> <partition> <filesystem config:type="symbol">ext2</filesystem> <format config:type="boolean">true</format> <mount>/boot</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">0</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> <partition> <lvm_group>sys</lvm_group> <partition_id config:type="integer">142</partition_id> <partition_nr config:type="integer">1</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> </partitions> <type config:type="symbol">CT_MD</type> <use>all</use> </drive> <drive> <initialize config:type="boolean">true</initialize> <device>/dev/sda</device> <partitions config:type="list"> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">1</partition_nr> <partition_type>primary</partition_type> <raid_name>/dev/md0</raid_name> <size>100MB</size> </partition> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">2</partition_nr> <partition_type>primary</partition_type> <raid_name>/dev/md1</raid_name> <size>max</size> </partition> </partitions> <type config:type="symbol">CT_DISK</type> <use>all</use> </drive> <drive> <initialize config:type="boolean">true</initialize> <device>/dev/sdb</device> <partitions config:type="list"> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">1</partition_nr> <partition_type>primary</partition_type> <raid_name>/dev/md0</raid_name> <size>100MB</size> </partition> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">2</partition_nr> <partition_type>primary</partition_type> <raid_name>/dev/md1</raid_name> <size>max</size> </partition> </partitions> <type config:type="symbol">CT_DISK</type> <use>all</use> </drive> <drive> <initialize config:type="boolean">true</initialize> <device>/dev/sdc</device> <partitions config:type="list"> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">1</partition_nr> <partition_type>primary</partition_type> <raid_name>/dev/md0</raid_name> <size>100MB</size> </partition> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">2</partition_nr> <partition_type>primary</partition_type> <raid_name>/dev/md1</raid_name> <size>max</size> </partition> </partitions> <type config:type="symbol">CT_DISK</type> <use>all</use> </drive> <drive> <device>/dev/sys</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <lv_name>home</lv_name> <mount>/home</mount> <fstopt>defaults,acl,usrjquota=aquota.user,jqfmt=vfsv0</fstopt> <partition_id config:type="integer">131</partition_id> <size>1GB</size> </partition> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <lv_name>root</lv_name> <mount>/</mount> <fstopt>defaults</fstopt> <partition_id config:type="integer">131</partition_id> <size>1GB</size> </partition> <partition> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <lv_name>swap</lv_name> <fstopt>defaults</fstopt> <mount>swap</mount> <partition_id config:type="integer">130</partition_id> <size>6GB</size> </partition> </partitions> <pesize>4M</pesize> <type config:type="symbol">CT_LVM</type> <use>all</use> </drive> </partitioning> [snip] --- End Included Message --- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Monday 11 October 2010 Lars Stavholm wrote:
I have a bit of a wirdness in OpenSuSE 11.3 autoyast that I need some help with.
that looks like: https://bugzilla.novell.com/show_bug.cgi?id=626132 Did you install all updates in stage1? -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Lars Stavholm
-
Uwe Gansert