Hi,

One of my bash scripts automatically sets up a box in a multi-boot
configuration. This script utilizes GRUB to configure the boot behaviour.

This script stumbled when I used it to prepare a SuSE 9.0 distribution in a
Reiser FS partition. The error is described in bug #6772 (state closed, but
no further explanation)

Basically the script does the following:

mkreiserfs /dev/hda6
sfdisk --change-id /dev/hda 6 83

..
reboot
exit
..
# the following code is executed after reboot:
..
mount /dev/hda6 /mnt
# copies the menu files, stage{1,2} and stage1_5* files
cp -r /from-somewhere/boot/grub /mnt
..
# the following is executed to find the GRUB identifier for
# hda (hd0 for example)
echo 'marker' > /mnt/hda5.mark
umount /mnt
grub --batch > /tmp/result << EOF
find /hda5.mark
quit
EOF
# now the contents of /tmp/result is examined and hda is,
# let's say, found to be (hd0). The script uses variables, but I
# substitute their contents here for simplicity

# make the partition bootable
grub --batch < EOF
root (hd0,4)
setup (hd0,4)
EOF
# ERROR: the above setup command finds the necessary files, embeds
# the reiser stage 1.5, but fails to install. The error message is:
# stage1/stage2 mismatch

# I found out, that simply re-issuing the above command succeeds:
grub --batch < EOF
root (hd0,4)
setup (hd0,4)
EOF
# second try terminates without error

All is with SuSE 9.0 and GRUB 0.93. Since Re-issuing the grub call solves
the problem, it is ok for me so far. But I felt, I should notify this list.

Wolf Lammen

-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgeb�hr: http://www.gmx.net/dsl



_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to