setup-storage + grub2
Waldemar Brodkorb
fai at waldemar-brodkorb.de
Wed Apr 21 18:25:29 CEST 2010
Hi,
Michael Tautschnig wrote,
> > Hi,
> > Michael Tautschnig wrote,
> >
> > > No, using the underlying partitions doesn't really make sense, that would
> > > destroy LVM volume integrity. But according to some online docs it's pretty
> > > simple: Just strip off the /dev/mapper/ part.
> > >
> > > I've updated the scripts in 3.4~beta1+experimental8; could you retry to see
> > > whether this finally works? It would be really cool if we finally had proper
> > > support for LVM/grub in FAI 3.4 ...
> >
> > Does not work. Tested with experimental11:
> >
>
> [...]
>
> Could you try the attached scripts/GRUB_PC/10-setup, which is *a lot* simpler?
Does not work.
> 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
> One possible issue remains: Which version of grub-pc are you using? It seems
> that versions before 1.97 are broken regarding LVM.
I am using 1.98 from Ubuntu/Lucid.
bye
Waldemar
More information about the linux-fai
mailing list