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>
22 lines
777 B
Desktop File
22 lines
777 B
Desktop File
[Unit]
|
|
Description=Bootc Fallback Root Filesystem Grow
|
|
Documentation=https://gitlab.com/fedora/bootc/docs
|
|
# For now we skip bare metal cases, and we also have nothing to do
|
|
# for containers.
|
|
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
|
|
After=sysinit.target
|
|
Before=basic.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/libexec/bootc-generic-growpart
|
|
# So we can temporarily remount the sysroot writable
|
|
MountFlags=slave
|
|
# Just to auto-cleanup our temporary files
|
|
PrivateTmp=yes
|