mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
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
This commit is contained in:
parent
fcf90586a2
commit
63a1b905d8
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user