blob: 5d53464c89955f42d33ebe92eb607e0130ff9389 [file] [log] [blame]
unit_files = [
'phosphor-systemd-target-monitor.service',
'phosphor-discover-system-state@.service',
'obmc-power-start@.service',
'obmc-power-stop@.service',
'obmc-powered-off@.service',
'phosphor-reboot-host@.service',
'phosphor-reset-chassis-on@.service',
'phosphor-reset-chassis-running@.service',
'phosphor-reset-host-recovery@.service',
'phosphor-reset-host-running@.service',
'phosphor-reset-sensor-states@.service',
'xyz.openbmc_project.State.BMC.service',
'xyz.openbmc_project.State.Chassis@.service',
'xyz.openbmc_project.State.Host@.service',
'xyz.openbmc_project.State.Hypervisor.service',
'xyz.openbmc_project.State.ScheduledHostTransition@.service',
'phosphor-clear-one-time@.service',
'phosphor-set-host-transition-to-off@.service',
'phosphor-set-host-transition-to-running@.service',
'phosphor-chassis-check-power-status@.service',
'phosphor-bmc-security-check.service',
'phosphor-create-chassis-poweron-log@.service',
'phosphor-set-chassis-transition-to-on@.service',
'phosphor-set-chassis-transition-to-off@.service',
]
fs = import('fs')
foreach u : unit_files
fs.copyfile(u, install: true, install_dir: systemd_system_unit_dir)
endforeach
configure_file(
input: 'phosphor-reset-host-reboot-attempts@.service.in',
output: 'phosphor-reset-host-reboot-attempts@.service',
install_dir: systemd_system_unit_dir,
install: true,
configuration: configuration_data(
{'BOOT_COUNT_MAX_ALLOWED': get_option('boot-count-max-allowed')},
),
)