[systemd-devel] [PATCH 2/3] mount: move device links handling from generator
Harald Hoyer
harald.hoyer at gmail.com
Wed Aug 21 05:50:37 PDT 2013
On 08/21/2013 01:53 PM, Tom Gundersen wrote:
> - if (!isbind &&
> - !path_equal(where, "/")) {
> -
> - r = device_name(what, &device);
> - if (r < 0)
> - return r;
> -
> - if (r > 0) {
> - free(lnk);
> - lnk = strjoin(arg_dest, "/", device, ".wants/", name, NULL);
> - if (!lnk)
> - return log_oom();
> -
> - mkdir_parents_label(lnk, 0755);
> - if (symlink(unit, lnk) < 0) {
> - log_error("Failed to create symlink %s: %m", lnk);
> - return -errno;
> - }
> - }
> - }
Hmm, why is this not needed anymore?
More information about the systemd-devel
mailing list