[systemd-devel] how disable fsck on swap+lvm

Lennart Poettering lennart at poettering.net
Fri Feb 18 02:31:48 PST 2011


On Fri, 18.02.11 01:37, 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

Please don't litter unit files with unnecssary ConditionPathExists=
please. .service files should be installed along side their binaries and
shipped in the same packages. So that if the .service file exists the
binary exists too, and if the binary doesn't then the .servie file
doesn't exist either.

Otherwise looks good. And yupp, e should have that in upstream LVM.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list