Am 12.06.2013 13:06, schrieb Stefan G. Weichinger:
> 
> I am currently trying to find out why my LVM2-volumes aren't activated
> correctly at boot time. I am using packages from the overlay
> systemd-love as I run systemd as init-system (why? that's another
> discussion ;-) ).

When you find a solution, I'd be interested :) Having the same problem,
also running grub2, systemd, lvm.

This is my current work-around

$ cat /etc/systemd/system/lvm.service
[Unit]
Description=Load LVM

[Service]
Type=oneshot
ExecStart=/sbin/pvscan
ExecStart=/sbin/vgscan --mknodes
ExecStart=/sbin/vgchange --sysinit -a ly
ExecStart=/usr/bin/sleep 1
ExecStart=/bin/mount -o noatime /dev/vg1/a      /mnt/a
ExecStart=/bin/mount -o noatime /dev/vg1/b      /mnt/b

[Install]
WantedBy=multi-user.target

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to