Hi all,
having problems with the bootloader for RAID1 boot.
I've specified the bootloader section explicitly
in my autoinst.xml (since the one suggested by
autoyast doesn't work). Despite this, the first
boot doesn't use my specified bootloader, it still
uses the autoyast one. After the first boot, however,
my specific one is used, but only if I implement it
as a post-script. The bootloader specifications from
the bootloader section is still not used.
How do I get my bootloader specification to be used at
all, especially at first boot? Is there a workaround?
R
/LarS
PS. Here's my autoinst.xml:
--- Begin Included Message ---
<?xml version="1.0"?>
<!-- $Id: configure.xml,v 1.5 2005/09/28 12:46:34 stava Exp $ -->
<!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
<profile xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<bootloader>
<activate config:type="boolean">false</activate>
<global config:type="list">
<key>color</key><value>white/blue black/light-gray</value>
<key>default</key><value>0</value>
<key>timeout</key><value config:type="integer">5</value>
</global>
/dev/md0
grub
false
<sections config:type="list">
<section>
<key>title</key><value>SuSE Linux 10.0</value>
<key>root</key><value>(hd0,0)</value>
<key>kernel</key>
<value>/vmlinuz root=/dev/md2 vga=791 selinux=0 noresume
acpi=off splash=silent showopts</value>
<key>initrd</key>
<value>/initrd</value>
</section>
<section>
<key>title</key><value>SuSE Linux 10.0 - failsafe</value>
<key>root</key><value>(hd0,0)</value>
<key>kernel</key>
<value>/vmlinuz root=/dev/md2 vga=normal showopts ide=nodma
apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3</value>
<key>initrd</key>
<value>/initrd</value>
</section>
</sections>
</bootloader>
<scripts>
<!--
<post-scripts config:type="list">
<script>
<filename>post.sh</filename>
<interpreter>shell</interpreter>
<source>
<![CDATA[
cat <<! > /boot/grub/menu.lst
color white/blue black/light-gray
default 0
fallback 1
timeout 5
title SuSE Linux 10.0
root (hd0,0)
kernel /vmlinuz root=/dev/md2 vga=791 selinux=0 noresume
acpi=off splash=silent showopts
initrd /initrd
title SuSE Linux 10.0
root (hd1,0)
kernel /vmlinuz root=/dev/md2 vga=791 selinux=0 noresume
acpi=off splash=silent showopts
initrd /initrd
title SuSE Linux 10.0 - failsafe
root (hd0,0)
kernel /vmlinuz root=/dev/md2 vga=normal showopts ide=nodma
apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /initrd
title SuSE Linux 10.0 - failsafe
root (hd1,0)
kernel /vmlinuz root=/dev/md2 vga=normal showopts ide=nodma
apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /initrd
!
]]>
</source>
</script>
</post-scripts>
-->
<pre-scripts config:type="list">
<script>
<filename>pre.sh</filename>
<interpreter>shell</interpreter>
<source>
<![CDATA[
hds=`fdisk -l | grep Disk | grep '/dev/hd' | cut -d\ -f2 | cut -d: -f1`
for hd in $hds; do
ps=`parted $hd print | grep '^[1-9]' | cut -d\ -f1`
for p in $ps; do
mdadm --force --zero-superblock $hd$p
parted $hd rm $p
done
#dd if=/dev/zero of=$hd bs=1k count=1
done
]]>
</source>
</script>
</pre-scripts>
</scripts>
<users config:type="list">
<user>
<encrypted config:type="boolean">true</encrypted>
<gid config:type="integer">0</gid>
<grouplist></grouplist>
<home>/root</home>
<expire></expire>
<flag></flag>
<inact></inact>
12418
<max>10000</max>
<min>0</min>
<warn></warn>
<shell>/bin/tcsh</shell>
$2a$10$hqI8xRFGn1Wo26WF4V1qqeqDVYOEF5eiFeQo2WpdQTwrbIVOb2U0e
<username>root</username>
</user>
</users>
<general>
<clock>
<hwclock>UTC</hwclock>
<timezone>Europe/Stockholm</timezone>
</clock>
<keyboard>
<keymap>swedish</keymap>
</keyboard>
<language>en_US</language>
<mode>
<confirm config:type="boolean">false</confirm>
<forceboot config:type="boolean">false</forceboot>
<reboot config:type="boolean">false</reboot>
</mode>
<mouse>
<id>probe</id>
</mouse>
</general>
<bootloader>
<activate config:type="boolean">true</activate>
/dev/md0
grub
</bootloader>
<partitioning config:type="list">
<drive>
<device>/dev/hda</device>
<initialize config:type="boolean">false</initialize>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">false</format>
253
1
primary
/dev/md0
raid
<size>100MB</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">false</format>
253
2
primary
/dev/md1
raid
<size>900MB</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">false</format>
253
3
primary
/dev/md2
raid
<size>max</size>
</partition>
</partitions>
<use>all</use>
</drive>
<drive>
<device>/dev/hdc</device>
<initialize config:type="boolean">false</initialize>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">false</format>
253
1
primary
/dev/md0
raid
<size>100MB</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">false</format>
253
2
primary
/dev/md1
raid
<size>900MB</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">false</format>
253
3
primary
/dev/md2
raid
<size>max</size>
</partition>
</partitions>
<use>all</use>
</drive>
<drive>
<device>/dev/md</device>
<initialize config:type="boolean">false</initialize>
<partitions config:type="list">
<partition>
<filesystem config:type="symbol">ext2</filesystem>
<format config:type="boolean">true</format>
<mount>/boot</mount>
131
0
</partition>
<partition>
<filesystem config:type="symbol">swap</filesystem>
<format config:type="boolean">true</format>
<mount>swap</mount>
130
1
</partition>
<partition>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
<mount>/</mount>
131
2
</partition>
</partitions>
<use>all</use>
</drive>
</partitioning>
<software>
<addons>
<addon>Min</addon>
<addon>X11</addon>
<addon>Jonix-Addons</addon>
</addons>
<base>Minimal+X11</base>
<packages config:type="list">
<package>lvm2</package>
</packages>
<remove-packages config:type="list">
<package>imap</package>
<package>lukemftp</package>
<package>tftp</package>
</remove-packages>
</software>
</profile>
--- End Included Message ---