combustion/combustion-prepare.service
2022-03-07 10:15:55 +00:00

33 lines
1.0 KiB
Desktop File

[Unit]
Description=Combustion (preparations)
DefaultDependencies=false
# Systemd evaluates Requires/After before conditions, so this unit is pulled in
# even when combustion.service won't run.
ConditionKernelCommandLine=|ignition.firstboot
ConditionKernelCommandLine=|combustion.firstboot
# Config drive has to be available
Wants=dev-combustion-config.device
After=dev-combustion-config.device
# If both Ignition and Combustion are active make sure to run their
# configuration scripts sequentially, as both try to mount the configuration
# device
After=ignition-setup-user.service
# This reconfigures networking, which runs during the initqueue (wicked)
# or has its own service (NM)
Before=dracut-initqueue.service nm-initrd.service
Conflicts=initrd-switch-root.target umount.target
Conflicts=dracut-emergency.service emergency.service emergency.target
# Without this it goes into an endless loop on failure
OnFailure=emergency.target
OnFailureJobMode=isolate
[Service]
Type=oneshot
ExecStart=/usr/bin/combustion --prepare