[systemd-devel] [PATCH 1/2] cryptsetup: RequiresMountsFor if source is a file
Frederic Crozat
fcrozat at suse.com
Fri Mar 29 08:15:56 PDT 2013
Le vendredi 29 mars 2013 à 16:07 +0100, Lennart Poettering a écrit :
> On Wed, 27.03.13 17:52, Thomas Weißschuh (thomas at t-8ch.de) wrote:
>
> > + if (startswith(u, "/dev/"))
>
> Looks like we want is_device_path for this?
>
> > + fprintf(f,
> > + "BindsTo=%s\n"
> > + "After=%s\n"
> > + "Before=umount.target\n",
> > + d, d);
> > + else
> > + fprintf(f,
> > + "RequiresMountsFor=%s\n",
> > + u);
> > +
> > fprintf(f,
> > "\n[Service]\n"
> > "Type=oneshot\n"
>
> Oh, and could you add a full http URL path to the bug in the commit msg?
> otherwise it's not clear if that's fdobz or rhbz or any other.
You can use https://bugzilla.novell.com/show_bug.cgi?id=730496 for
instance (I have similar patch I had on my list to upstream again, since
I sent a early version before RequiresMountsFor was written but forgot).
--
Frederic Crozat <fcrozat at suse.com>
SUSE
More information about the systemd-devel
mailing list