stretch and grub on LVM
Markus Wigge
markus at cultcom.de
Tue Jun 6 20:18:31 CEST 2017
Hi Thomas,
to update this old thread while stretch is knocking on the door I found
out that the "device.map" is making the trouble for me.
Attached you find a diff of two grub.cfg files one was created with a
"device.map" present (the ".broken" one) and the other without.
Unfortunately something different happens as well for "grub-install".
Only fixing the grub.conf does not result in a bootable system. I also
have to run "grub-install /dev/sda" again for the system disk.
All in all the automagic FAI installation works when I comment out the
"grub-mkdevicemap" line in GRUB_PC/10-setup.
Then I get a working grub.conf and the "grub-install" works a well.
And no, "/boot" on a separate device is no option for me. We are in 2017
and I even got a complete laptop disk encrypted including partition
table and LVM stuff and grub is able to boot it from the MBR only.
So I will never ever accept workaround partitions for my systems any more.
Kind Regards,
Markus
Am 13.09.2016 um 22:29 schrieb Thomas Lange:
>>>>>> On Wed, 10 Aug 2016 18:33:31 +0200, Markus Wigge <markus at cultcom.de> said:
>
> > I'm trying to install a stretch VM with more or less the same settings I
> > have for jessie (same config directory).
> You say, that this disk_config works on jessie but not on stretch?
>
> > #disk_config:
> >> disk_config disk1 disklabel:msdos bootable:1
> >> primary - 100% - -
> >>
> >> disk_config lvm
> >> vg vg1 disk1.1
> >> vg1-root / 1G-10G ext4 errors=remount-ro createopts="-m 2 -L root"
> >> vg1-swap swap 2G swap sw
> In the FAI example disk_config/LVM we use a seperate /boot
> partition. Is this a workaround for you?
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub.diff
Type: text/x-patch
Size: 7547 bytes
Desc: not available
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20170606/b8a2e431/attachment.bin>
More information about the linux-fai
mailing list