summaryrefslogtreecommitdiff
path: root/src/boot/ostree-prepare-root.service
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2020-05-08 12:49:55 +0000
committerColin Walters <walters@verbum.org>2020-05-08 12:50:55 +0000
commite1b63987872c733c39c9a61dfc9b2637db089bfc (patch)
tree2cd12b8d0ba54e26724829c1a137b012eff40a4b /src/boot/ostree-prepare-root.service
parent59173c9604ab906426c6d3dd5d86abf89191cf29 (diff)
downloadostree-e1b63987872c733c39c9a61dfc9b2637db089bfc.tar.gz
ostree-prepare-root: Requires=sysroot.mount
With just `After=` we'll still try to run in the scenario where `sysroot.mount` fails because the rootfs didn't appear. And this will end up spewing an error which can confuse people into thinking something is wrong at the ostree level. This has come up numerous times w/{Fedora,RHEL} CoreOS, most recently while looking at https://bugzilla.redhat.com/show_bug.cgi?id=1803130
Diffstat (limited to 'src/boot/ostree-prepare-root.service')
-rw-r--r--src/boot/ostree-prepare-root.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/boot/ostree-prepare-root.service b/src/boot/ostree-prepare-root.service
index 63357581..91692205 100644
--- a/src/boot/ostree-prepare-root.service
+++ b/src/boot/ostree-prepare-root.service
@@ -23,6 +23,7 @@ ConditionKernelCommandLine=ostree
ConditionPathExists=/etc/initrd-release
OnFailure=emergency.target
After=sysroot.mount
+Requires=sysroot.mount
Before=initrd-root-fs.target
[Service]