LVM booted using grub2 in Arch
Unlike my previous experiment with building NAStie installing this variant of linux onto LVM-only partitions proved difficult. My attempts left my sleep schedule a bit tweaked, and my disgust for "automated" configuration-file-building-scripts found new purpose. That aside, what worked when I installed Arch linux on LVM partitions is below.
-
Install Arch using the standard install tool.
-
While doing this, refer to the Arch Wiki page on LVM and follow its instructions until it talks about changing the grub configuration file.
-
Assigning
(VolumeGroupLabel-LogicalVolumeLabel)
to GRUB_DEVICE in/etc/default/grub
will cause the/boot/grub/grub.cfg
-building script to insert the parameter 'root=(VolumeGroupLabel-LogicalVolumeLabel)' when building the kernel's command-line. This does not work. Once the/boot/grub/grub.cfg
file is build by grub-mkconfig, edit the /boot/grub/grub.cfg file to change the kernel's root parameter to 'root=/dev/mapper/VolumeGroupLabel-LogicalVolumeLabel' (gathered from various sources including the LVM section on the Arch Wiki GRUB2 page). -
Boot happily ever after.
This is quick and dirty, but I wanted it documented for the next time I try this.