Skip to content

Commit d47bdad

Browse files
authored
Fix regression in nondeterministic failure of overlay services (#620)
This PR attempts to fix the problem described in #618 (comment) (and analyzed in #618 (comment)), which may be a regression caused by #613.
1 parent 989510f commit d47bdad

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

software/distro/setup/base-os/forklift/usr/lib/systemd/system/overlay-etc.service

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[Unit]
22
Description=Remount /etc as a writable overlay with a Forklift-managed intermediate layer, during early boot
33
DefaultDependencies=no
4+
Requires=-.mount
5+
After=-.mount
6+
Requires=systemd-remount-fs.service
7+
After=systemd-remount-fs.service
48
Wants=systemd-machine-id-commit.service
59
After=systemd-machine-id-commit.service
610
# If forklift (or the upperdir) provides kernel parameters via `/etc/sysctl.d`, we must make those

software/distro/setup/base-os/forklift/usr/lib/systemd/system/overlay-usr.service

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[Unit]
22
Description=Remount /usr as a writable overlay with a Forklift-managed intermediate layer, during early boot
33
DefaultDependencies=no
4+
Requires=-.mount
5+
After=-.mount
6+
Requires=systemd-remount-fs.service
7+
After=systemd-remount-fs.service
48
Wants=overlay-fs.target
59
Before=overlay-fs.target
610
Conflicts=umount.target

0 commit comments

Comments
 (0)