[systemd-devel] how disable fsck on swap+lvm
Andrey Borzenkov
arvidjaar at mail.ru
Thu Feb 17 19:39:57 PST 2011
On Fri, Feb 18, 2011 at 3:37 AM, Miklos Vajna <vmiklos at frugalware.org> wrote:
> On Thu, Feb 17, 2011 at 07:07:26PM +0300, Alexey Shabalin <a.shabalin at gmail.com> 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
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>
More information about the systemd-devel
mailing list