2020-09-11 10:27:57 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Combustion (preparations)
|
|
|
|
DefaultDependencies=false
|
|
|
|
|
2020-09-18 09:12:39 +02:00
|
|
|
# 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
|
2020-09-11 10:27:57 +02:00
|
|
|
|
|
|
|
# Config drive has to be available
|
2020-09-18 09:12:39 +02:00
|
|
|
Wants=dev-combustion-config.device
|
|
|
|
After=dev-combustion-config.device
|
2020-09-11 10:27:57 +02:00
|
|
|
|
2020-09-14 11:24:15 +02:00
|
|
|
# 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
|
|
|
|
|
2022-03-07 11:15:55 +01:00
|
|
|
# This reconfigures networking, which runs during the initqueue (wicked)
|
|
|
|
# or has its own service (NM)
|
|
|
|
Before=dracut-initqueue.service nm-initrd.service
|
2020-09-11 10:27:57 +02:00
|
|
|
|
|
|
|
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
|