mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-08 21:17:47 +03:00
generator: order initrd fsck-root after local-fs-pre
The initrd version of systemd-fsck-root.service must wait for local-fs-pre.target just like systemd-fsck@.service to prevent modifications to the filesystem prior to resuming from hibernation. As-is my laptop routinely fails to resume due to fsck errors. The rest of the time it is probably silently corrupting the filesystem. Unlike normal boot, in the initrd systemd-fsck-root.service has no special significance so it needs to be kept in sync with systemd-fsck@.service. The name systemd-fsck-root.service is only used to preserve state across switch-root.
This commit is contained in:
parent
87fde73e18
commit
5fd534d919
@ -64,7 +64,7 @@ static int write_fsck_sysroot_service(const char *dir, const char *what) {
|
||||
"Description=File System Check on %2$s\n"
|
||||
"DefaultDependencies=no\n"
|
||||
"BindsTo=%3$s\n"
|
||||
"After=%3$s\n"
|
||||
"After=%3$s local-fs-pre.target\n"
|
||||
"Before=shutdown.target\n"
|
||||
"\n"
|
||||
"[Service]\n"
|
||||
|
Loading…
Reference in New Issue
Block a user