Skip to content

Commit

Permalink
ignition-ostree-transposefs: don't run if multipath is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrero committed Jul 26, 2023
1 parent 208630a commit 971019d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ OnFailureJobMode=isolate
ConditionKernelCommandLine=ostree
# only run if ignition-ostree-growfs ran since that's when pathological cases occur
ConditionPathExists=/run/ignition-ostree-growfs.stamp
# https://issues.redhat.com/browse/OCPBUGS-16157
ConditionKernelCommandLine=!rd.multipath

[Service]
Type=oneshot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Before=sysroot.mount
ConditionKernelCommandLine=ostree
OnFailure=emergency.target
OnFailureJobMode=isolate
# https://issues.redhat.com/browse/OCPBUGS-16157
ConditionKernelCommandLine=!rd.multipath

# This stage requires udevd to detect disks
Requires=systemd-udevd.service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ OnFailureJobMode=isolate

ConditionKernelCommandLine=ostree
ConditionPathIsDirectory=/run/ignition-ostree-transposefs
# https://issues.redhat.com/browse/OCPBUGS-16157
ConditionKernelCommandLine=!rd.multipath

[Service]
Type=oneshot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ After=ignition-ostree-transposefs-detect.service
Before=ignition-disks.service
ConditionKernelCommandLine=ostree
ConditionPathIsDirectory=/run/ignition-ostree-transposefs
# https://issues.redhat.com/browse/OCPBUGS-16157
ConditionKernelCommandLine=!rd.multipath
# Any services looking at mounts need to order after this
# because it causes device re-probing.
After=coreos-gpt-setup.service
Expand Down

0 comments on commit 971019d

Please sign in to comment.