blob: d6222688f10eaf5a920a0ad21301c9e618b2b0a0 [file] [log] [blame]
Andrew Geissler179d38c2019-12-10 15:05:23 -06001unit_files = [
2 'phosphor-systemd-target-monitor.service',
Andrew Geisslerc2123532020-01-14 10:39:47 -06003 'phosphor-discover-system-state@.service',
Andrew Geissler86a1ebf2022-11-10 15:58:30 -06004 'obmc-power-start@.service',
5 'obmc-power-stop@.service',
6 'obmc-powered-off@.service',
Andrew Geisslerc2123532020-01-14 10:39:47 -06007 'phosphor-reboot-host@.service',
Andrew Geissler86a1ebf2022-11-10 15:58:30 -06008 'phosphor-reset-chassis-on@.service',
9 'phosphor-reset-chassis-running@.service',
Andrew Geisslerc2123532020-01-14 10:39:47 -060010 'phosphor-reset-host-reboot-attempts@.service',
Andrew Geissler5f8e04a2021-08-12 15:51:41 -040011 'phosphor-reset-host-recovery@.service',
Andrew Geisslerc2123532020-01-14 10:39:47 -060012 'phosphor-reset-host-running@.service',
13 'phosphor-reset-sensor-states@.service',
14 'xyz.openbmc_project.State.BMC.service',
Potin Lai70f36d82022-03-15 10:25:39 +080015 'xyz.openbmc_project.State.Chassis@.service',
Allen.Wang79b45002022-02-10 17:59:20 +080016 'xyz.openbmc_project.State.Host@.service',
Andrew Geisslerfe270d32021-01-27 14:06:46 -060017 'xyz.openbmc_project.State.Hypervisor.service',
Patrick Williams211d9722022-04-07 21:24:33 -050018 'xyz.openbmc_project.State.ScheduledHostTransition@.service',
Andrew Geissler1e8b1642021-01-05 15:00:25 -060019 'phosphor-clear-one-time@.service',
20 'phosphor-set-host-transition-to-off@.service',
Andrew Geissler378fe112022-02-03 16:39:44 -060021 'phosphor-set-host-transition-to-running@.service',
Andrew Geissler1662ba62022-03-18 13:51:46 -050022 'phosphor-chassis-check-power-status@.service',
Andrew Geisslerafe12d62023-04-28 14:58:16 -060023 'phosphor-bmc-security-check.service',
Thang Tran74d7a552023-11-14 13:35:50 +070024 'phosphor-create-chassis-poweron-log@.service',
25 'phosphor-set-chassis-transition-to-on@.service',
26 'phosphor-set-chassis-transition-to-off@.service'
Andrew Geissler179d38c2019-12-10 15:05:23 -060027]
28
George Liudb8feba2023-08-16 15:57:43 +080029fs = import('fs')
Andrew Geissler179d38c2019-12-10 15:05:23 -060030foreach u : unit_files
George Liudb8feba2023-08-16 15:57:43 +080031 fs.copyfile(
32 u,
Andrew Geissler179d38c2019-12-10 15:05:23 -060033 install: true,
George Liudb8feba2023-08-16 15:57:43 +080034 install_dir: systemd_system_unit_dir
35 )
Andrew Geissler179d38c2019-12-10 15:05:23 -060036endforeach