From 06fddc9007c127bbffd6210606f5e45a35c0c3bd Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 14 Jan 2025 10:23:46 -0500 Subject: [PATCH] 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 --- tier-1/bootc-generic-growpart.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tier-1/bootc-generic-growpart.service b/tier-1/bootc-generic-growpart.service index 77bb310..c37d2d7 100644 --- a/tier-1/bootc-generic-growpart.service +++ b/tier-1/bootc-generic-growpart.service @@ -6,6 +6,8 @@ Documentation=https://gitlab.com/fedora/bootc/docs ConditionVirtualization=vm # This helps verify that we're running in a bootc/ostree based target. 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. DefaultDependencies=no Requires=sysinit.target