Files
clr-init/initramfs/usr/lib/systemd/system/lvm2-mount-sysroot.service
Mark D Horn 40e678ea00 initramfs: lvm sysroot
Only activate the Clear Linux OS rootfs volume.

Add lvm conf file to allow pvscan, but prevent starting the
lvmetad service. Otherwise, if non-root lvms exist, all lvms
are active and the Host OS will hang when starting lvmetad service.

Add new lvm2-mount-sysroot.service to only activate the rootfs
which is identified by the CLR_ROOT logical volume name.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-06-22 16:24:49 -05:00

13 lines
270 B
Desktop File

[Unit]
Description=LVM2 mount sysroot before switching to rootfs
DefaultDependencies=no
Before=initrd-root-device.target
[Service]
Type=oneshot
ExecStart=-/bin/lvm lvchange --select lv_name=~CLR_ROOT -a y
TimeoutStartSec=0
[Install]
WantedBy=initrd-root-device.target