[systemd-devel] [PATCH 1/2] cryptsetup: RequiresMountsFor if source is a file

Lennart Poettering lennart at poettering.net
Fri Mar 29 08:07:27 PDT 2013


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.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list