]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount: Include After=local-fs-pre.target by default in initrd
authorWill Fancher <elvishjerricco@gmail.com>
Wed, 8 Feb 2023 03:00:38 +0000 (22:00 -0500)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 10 Mar 2023 17:10:41 +0000 (02:10 +0900)
commit6e017b19a804639101fc87b4b78c02f7639c6d0c
tree334ab854bf46fe82063e4f18829d553d20b700d7
parentaa410791756d672e68fbf7de5ba95cab43e39a97
mount: Include After=local-fs-pre.target by default in initrd

Although it may be true that /sysroot and its children don't belong in
local-fs.target, that doesn't mean they shouldn't come after
local-fs-pre.target. For instance, systemd-hibernate-resume@.service needs to
come before /sysroot and its children, but currently that only happens
coincidentally because of the ordering between systemd-fsck@.service and
local-fs-pre.target. As a result, mount units can be mistakenly started
simultaneously with systemd-hibernate-resume@.service, which can cause
corruption and data loss in the worst of cases.
src/core/mount.c