[Unit] Description=Grow size of rootfs to underlying block device # If we have a growfs service in stage4, we don't do anything here ConditionPathExists=!/sysroot/etc/systemd/system/grow-rootfs.service # For ext4, -root-device would be sufficient, but XFS tool needs mountpoint After=initrd-root-fs.target Before=initrd-switch-root.target DefaultDependencies=no IgnoreOnIsolate=true [Service] Type=oneshot RemainAfterExit=true ExecStart=/usr/local/bin/s3-grow-rootfs.sh