1 |
Am 12.06.2013 13:06, schrieb Stefan G. Weichinger: |
2 |
> |
3 |
> I am currently trying to find out why my LVM2-volumes aren't activated |
4 |
> correctly at boot time. I am using packages from the overlay |
5 |
> systemd-love as I run systemd as init-system (why? that's another |
6 |
> discussion ;-) ). |
7 |
|
8 |
When you find a solution, I'd be interested :) Having the same problem, |
9 |
also running grub2, systemd, lvm. |
10 |
|
11 |
This is my current work-around |
12 |
|
13 |
$ cat /etc/systemd/system/lvm.service |
14 |
[Unit] |
15 |
Description=Load LVM |
16 |
|
17 |
[Service] |
18 |
Type=oneshot |
19 |
ExecStart=/sbin/pvscan |
20 |
ExecStart=/sbin/vgscan --mknodes |
21 |
ExecStart=/sbin/vgchange --sysinit -a ly |
22 |
ExecStart=/usr/bin/sleep 1 |
23 |
ExecStart=/bin/mount -o noatime /dev/vg1/a /mnt/a |
24 |
ExecStart=/bin/mount -o noatime /dev/vg1/b /mnt/b |
25 |
|
26 |
[Install] |
27 |
WantedBy=multi-user.target |