bootloader for RAID1
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"> <global_entry> <key>color</key><value>white/blue black/light-gray</value> </global_entry> <global_entry> <key>default</key><value>0</value> </global_entry> <global_entry> <key>timeout</key><value config:type="integer">5</value> </global_entry> </global> <loader_device>/dev/md0</loader_device> <loader_type>grub</loader_type> <repl_mbr config:type="boolean">false</repl_mbr> <sections config:type="list"> <section> <section_entry> <key>title</key><value>SuSE Linux 10.0</value> </section_entry> <section_entry> <key>root</key><value>(hd0,0)</value> </section_entry> <section_entry> <key>kernel</key> <value>/vmlinuz root=/dev/md2 vga=791 selinux=0 noresume acpi=off splash=silent showopts</value> </section_entry> <section_entry> <key>initrd</key> <value>/initrd</value> </section_entry> </section> <section> <section_entry> <key>title</key><value>SuSE Linux 10.0 - failsafe</value> </section_entry> <section_entry> <key>root</key><value>(hd0,0)</value> </section_entry> <section_entry> <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> </section_entry> <section_entry> <key>initrd</key> <value>/initrd</value> </section_entry> </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> <password_settings> <expire></expire> <flag></flag> <inact></inact> <last_change>12418</last_change> <max>10000</max> <min>0</min> <warn></warn> </password_settings> <shell>/bin/tcsh</shell> <user_password>$2a$10$hqI8xRFGn1Wo26WF4V1qqeqDVYOEF5eiFeQo2WpdQTwrbIVOb2U0e</user_password> <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> <loader_device>/dev/md0</loader_device> <loader_type>grub</loader_type> </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> <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> <raid_type>raid</raid_type> <size>100MB</size> </partition> <partition> <create config:type="boolean">true</create> <format config:type="boolean">false</format> <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> <raid_type>raid</raid_type> <size>900MB</size> </partition> <partition> <create config:type="boolean">true</create> <format config:type="boolean">false</format> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">3</partition_nr> <partition_type>primary</partition_type> <raid_name>/dev/md2</raid_name> <raid_type>raid</raid_type> <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> <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> <raid_type>raid</raid_type> <size>100MB</size> </partition> <partition> <create config:type="boolean">true</create> <format config:type="boolean">false</format> <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> <raid_type>raid</raid_type> <size>900MB</size> </partition> <partition> <create config:type="boolean">true</create> <format config:type="boolean">false</format> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">3</partition_nr> <partition_type>primary</partition_type> <raid_name>/dev/md2</raid_name> <raid_type>raid</raid_type> <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> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">0</partition_nr> </partition> <partition> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <mount>swap</mount> <partition_id config:type="integer">130</partition_id> <partition_nr config:type="integer">1</partition_nr> </partition> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">2</partition_nr> </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 ---
On Thursday 24 November 2005 14:59, Lars Stavholm wrote:
How do I get my bootloader specification to be used at all, especially at first boot? Is there a workaround?
actually it should work without a workaround but you can try to use a chroot-script with the chrooted element set to true and overwrite the bootloader again with your own version. For chroot-scripts look here: http://www.suse.de/~ug/autoyast_doc/createprofile.scripts.html -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
Uwe Gansert wrote:
On Thursday 24 November 2005 14:59, Lars Stavholm wrote:
How do I get my bootloader specification to be used at all, especially at first boot? Is there a workaround?
actually it should work without a workaround but you can try to use a chroot-script with the chrooted element set to true and overwrite the bootloader again with your own version. For chroot-scripts look here: http://www.suse.de/~ug/autoyast_doc/createprofile.scripts.html
Thanks Uwe! That worked nicely. /L
participants (2)
-
Lars Stavholm
-
Uwe Gansert