diff --git a/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/ignition-ostree-growfs.service b/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/ignition-ostree-growfs.service index e005657f1b..30f02b939d 100644 --- a/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/ignition-ostree-growfs.service +++ b/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/ignition-ostree-growfs.service @@ -2,6 +2,9 @@ Description=Ignition OSTree: Grow root filesystem DefaultDependencies=false ConditionKernelCommandLine=ostree +# Similar to the other mount rules, suppress invocation if we detect +# we are running from a legacy setup created by Anaconda. +ConditionKernelCommandLine=!root ConditionPathExists=!/run/ostree-live Before=initrd-root-fs.target After=ignition-ostree-mount-firstboot-sysroot.service