[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Install to LVM PVs
From: |
Dryden Personalis |
Subject: |
[PATCH] Install to LVM PVs |
Date: |
Sun, 08 May 2016 06:53:52 +0200 |
User-agent: |
Roundcube Webmail/1.1.5 |
I updated this guy's patch to work with 2.02 beta 2, at least.
I've just worked on the version that gets downloaded and unpacked on
Kubuntu / Ubuntu 16.04.
One part of the patch didn't apply because apparently some tabs have
entered a file, namely grub-core/disk/lvm.c.
Another part didn't apply because code had been refactored from
grub-setup.c to setup.c.
I've only compiled with these extra packages:
- bison
- flex
- libdevmapper-dev
and automake was also required. I've had to symlink the 1.15 executables
to 1.14.
I'm not sure why the patch never made it into mainline grub, but back
then (2013) the argument was that it was doing something to an area that
was not meant for that.
However LVM contains the --bootloaderareasize flag that seems to be
meant for this, and if you put it to 2048 sectors (or 1M) it ought to
work cq. just works.
ie. pvcreate --bootloaderareasize 2048s /dev/sda, followed by,
grub-install /dev/sda, will just work and result in a bootable system
from that harddisk.
I don't know if I can attach here, and I don't know what will happen
with tabs if I inline it.
So I will attach first.
Regards.
ps. I did not test booting from the harddisk to a system on the
harddisk, but it boots a system on another device just fine, so I see no
reason why it wouldn't work.
reference:
https://lists.gnu.org/archive/html/grub-devel/2013-09/msg00113.html
grub-install-to-partitionless-lvm-pv_2.02~beta2.patch
Description: Text Data
- [PATCH] Install to LVM PVs,
Dryden Personalis <=