Skip to content

Commit

Permalink
Merge pull request #3220 from jlebon/pr/on-failure-isolate
Browse files Browse the repository at this point in the history
ostree-prepare-root.service: add OnFailureJobMode=isolate
  • Loading branch information
cgwalters authored Mar 21, 2024
2 parents dc4d4b5 + 05b3b66 commit 3c25a93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/boot/ostree-prepare-root.service
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ Documentation=man:ostree(1)
DefaultDependencies=no
ConditionKernelCommandLine=ostree
ConditionPathExists=/etc/initrd-release
OnFailure=emergency.target
After=sysroot.mount
Requires=sysroot.mount
Before=initrd-root-fs.target

OnFailure=emergency.target
OnFailureJobMode=isolate

[Service]
Type=oneshot
ExecStart=/usr/lib/ostree/ostree-prepare-root /sysroot
Expand Down

0 comments on commit 3c25a93

Please sign in to comment.