growpart: Add ConditionPathExists=/usr/bin/growpart
Hopefully eventually this gets rewritten in not-shell-script and put somewhere saner. For now, avoid failing if people have trimmed their images. The growpart problem only comes with bootc-image-builder and cloud environments anyways, it's not something we hit with Anaconda installs or `bootc install to-filesystem`, so we can avoid this. Closes: https://gitlab.com/fedora/bootc/base-images/-/issues/34 Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
1 parent
b44ea1ace5
commit
06fddc9007
1 file changed
+2
@@ -6,6 +6,8 @@ Documentation=https://gitlab.com/fedora/bootc/docs
|
|||||||
ConditionVirtualization=vm
|
ConditionVirtualization=vm
|
||||||
# This helps verify that we're running in a bootc/ostree based target.
|
# This helps verify that we're running in a bootc/ostree based target.
|
||||||
ConditionPathIsMountPoint=/sysroot
|
ConditionPathIsMountPoint=/sysroot
|
||||||
|
# For someone making a smaller image, assume they have this handled.
|
||||||
|
ConditionPathExists=/usr/bin/growpart
|
||||||
# We want to run before any e.g. large container images might be pulled.
|
# We want to run before any e.g. large container images might be pulled.
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Requires=sysinit.target
|
Requires=sysinit.target
|
||||||
|
|||||||
Reference in new issue
Block a user