[systemd-devel] [PATCH] fstab-generator: add x-systemd.{after, requires-mounts-for}=

Karel Zak kzak at redhat.com
Tue May 12 11:37:15 PDT 2015


On Tue, May 12, 2015 at 07:29:33PM +0300, Andrei Borzenkov wrote:
> В Tue, 12 May 2015 18:04:50 +0200
> Karel Zak <kzak at redhat.com> пишет:
> 
> > Currently we have no way how to specify dependencies between fstab
> > entries (or another units) in the /etc/fstab. It means that users are
> > forced to bypass fstab and write .mount units manually.
> > 
> 
> Actually we have.
> 
> mkdir -p /etc/systemd/system/path-to-mount-point.mount.d
> cat > /etc/systemd/system/path-to-mount-point.mount.d/deps.conf << EOF
> [Unit]
> After=xxx
> Before=xxx
> Wants=xxx
> Requires=xxx
> EOF

You miss the point -- keep all in fstab.

    Karel

-- 
 Karel Zak  <kzak at redhat.com>
 http://karelzak.blogspot.com


More information about the systemd-devel mailing list