summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-dmsetup/services/s3-grow-rootfs.service
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-dmsetup/services/s3-grow-rootfs.service')
-rw-r--r--modules.d/slx-dmsetup/services/s3-grow-rootfs.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/slx-dmsetup/services/s3-grow-rootfs.service b/modules.d/slx-dmsetup/services/s3-grow-rootfs.service
index a849f4a3..5cb42056 100644
--- a/modules.d/slx-dmsetup/services/s3-grow-rootfs.service
+++ b/modules.d/slx-dmsetup/services/s3-grow-rootfs.service
@@ -1,5 +1,7 @@
[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