diff options
author | Colin Guthrie <colin@mageia.org> | 2014-02-09 12:07:11 +0000 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-10 11:59:07 +0100 |
commit | 63a1b905d83b8d223f78822122c71860c1b613d1 (patch) | |
tree | 6ee69bd1b3fa861cfdb96386869e8fd789e78fc3 | |
parent | fcf90586a2b26c445d6a35313990096c8562ecee (diff) |
fstab-generator: Create fsck-root symlink with correct path
This was noticed in Brussels at the hackfest. The fstab-generator currently
creates a broken symlink pointing to itself in
/run/systemd/generator/local-fs.target.wants/ for systemd-fsck-root.service
-rw-r--r-- | src/fstab-generator/fstab-generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index 5480e54b4e..0336888b02 100644 --- a/src/fstab-generator/fstab-generator.c +++ b/src/fstab-generator/fstab-generator.c @@ -176,7 +176,7 @@ static int add_fsck(FILE *f, const char *what, const char *where, const char *ty lnk = strappenda(arg_dest, "/" SPECIAL_LOCAL_FS_TARGET ".wants/systemd-fsck-root.service"); mkdir_parents_label(lnk, 0755); - if (symlink("systemd-fsck-root.service", lnk) < 0) { + if (symlink(SYSTEM_DATA_UNIT_PATH "/systemd-fsck-root.service", lnk) < 0) { log_error("Failed to create symlink %s: %m", lnk); return -errno; } |