mirror of
https://github.com/clearlinux/clr-init.git
synced 2026-09-06 13:51:31 +00:00
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>
13 lines
270 B
Desktop File
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
|