Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM on Systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ub1quit33
n00b
n00b


Joined: 24 May 2013
Posts: 16

PostPosted: Sun Jun 09, 2013 4:37 pm    Post subject: LVM on Systemd Reply with quote

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
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 823
Location: PL

PostPosted: Mon Jun 10, 2013 6:43 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=453594 use this patch.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum