ub1quit33 n00b
Joined: 24 May 2013 Posts: 16
|
Posted: Sun Jun 09, 2013 4:37 pm Post subject: LVM on Systemd |
|
|
I just recently finished a gentoo linux build which is employing systemd as its init process. I quite like it, except I seem to have hit a snag. I can't seem to work out an lvm service file which will initialize my lvm volumes prior to systemd mounting the fstab entries. For now, I'm working around this by manually mounting all of my lvm volumes in my initramfs, but this can really only serve as a holdover and not a solution. I have included my lvm service file below. Any help is greatly appreciated!
Code: | [Unit]
Description=Activate lvm logical volumes
Before=local-fs-pre.target
[Service]
Type=oneshot
ExecStart=/sbin/lvm vgscan --mknodes
ExecStart=/sbin/lvm vgchange -ay
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target |
|
|