Xen
2016-05-06 20:44:47 UTC
Did people ever consider whether it was worth being able to start a PV
on a raw physical device with a small offset to reserve room for a boot
sector?
If you could create a PV on a bootdisk with a 2048 sector offset, you
would have a bootable device without partition tables and only LVM.
The same applies to LUKS. If you could put the LUKS header at 2048
sectors, you could boot a disk with nothing but a luks container, since
grub2 understands LUKS.
I guess such a thing would be extremely easy to achieve, it just
wouldn't be portable.
Since you may need to recompile both LUKS and Grub, and possibly even
dm-crypt.
The total number of changes would probably not be more than 10 lines.
Not sure.
Anyway.
Anyone ever fancied a LVM system without real partitions?
on a raw physical device with a small offset to reserve room for a boot
sector?
If you could create a PV on a bootdisk with a 2048 sector offset, you
would have a bootable device without partition tables and only LVM.
The same applies to LUKS. If you could put the LUKS header at 2048
sectors, you could boot a disk with nothing but a luks container, since
grub2 understands LUKS.
I guess such a thing would be extremely easy to achieve, it just
wouldn't be portable.
Since you may need to recompile both LUKS and Grub, and possibly even
dm-crypt.
The total number of changes would probably not be more than 10 lines.
Not sure.
Anyway.
Anyone ever fancied a LVM system without real partitions?