setup-storage + grub2
Michael Tautschnig
mt at debian.org
Wed Apr 28 14:27:07 CEST 2010
Hi Waldemar,
[...]
>
> > AFAIK grub-install takes care of a lot of things and just takes a device name as
> > argument, if you omit the parentheses!? It could be necessary to re-add the
> > grub-mkimage, if update-grub chokes on that one.
>
> Still failing. Only thing that works is either:
> $ROOTCMD /usr/sbin/grub-install --no-floppy --modules="biosdisk part_msdos ext2 lvm raid" "(hd0)"
> $ROOTCMD update-grub
> or
> $ROOTCMD /usr/sbin/grub-install --no-floppy --modules="biosdisk part_msdos ext2 lvm raid" /dev/sda
> $ROOTCMD update-grub
>
> Anything speaks against "(hd0)"? This would work for most of the
> cases. For RAID1 users an example like this might be enough:
> $ROOTCMD /usr/sbin/grub-install --no-floppy --modules="biosdisk part_msdos ext2 lvm raid" "(hd0)"
> $ROOTCMD /usr/sbin/grub-install --no-floppy --modules="biosdisk part_msdos ext2 lvm raid" "(hd1)"
> $ROOTCMD update-grub
>
I think I've been kind of stupid - obviously the device where the MBR resides
(which doesn't affect LVM in any way...) must be given. Sorry. Now, doing
vgdisplay or the like in this script isn't all that nice when setup-storage has
all the information anyway. This should have been fixed in
3.4~beta1+experimental12, where setup-storage includes the disks that make up a
volume group in $BOOT_DEVICE. I've also tried to simplify the 10-setup script
even further (well, the really simple version is in experimental13).
Could you give that one another try?
Thanks,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100428/dd5f550c/attachment.bin
More information about the linux-fai
mailing list