On Fri, Feb 18, 2011 at 3:37 AM, Miklos Vajna <[email protected]> wrote:
> On Thu, Feb 17, 2011 at 07:07:26PM +0300, Alexey Shabalin 
> <[email protected]> wrote:
>> But i have not some rule with "vgchange -a y", and have lv-disk as "LV
>> Status not available"
>
> Here is what we use at the moment:
>
> [Unit]
> Description=LVM activation
> DefaultDependencies=no
> After=udev-settle.service
> Before=local-fs.target
> ConditionPathExists=/sbin/vgchange
>

Why don't you just ship it with LVM so this condition becomes unnecessary?

> [Service]
> ExecStart=/sbin/vgchange --sysinit -a y
> Type=oneshot
>
> [Install]
> WantedBy=sysinit.target
>
> Would be nice to have this in upstream lvm2, though. (Mea culpa, I
> didn't try it, either. :) )
>
> _______________________________________________
> systemd-devel mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to