1unit_files = [ 2 'obmc-bmc-service-quiesce@.target', 3 'obmc-chassis-blackout@.target', 4 'obmc-chassis-hard-poweroff@.target', 5 'obmc-chassis-powered-off@.target', 6 'obmc-chassis-poweroff@.target', 7 'obmc-chassis-poweron@.target', 8 'obmc-chassis-powerreset@.target', 9 'obmc-chassis-powercycle@.target', 10 'obmc-fan-control-ready@.target', 11 'obmc-fan-control.target', 12 'obmc-fan-watchdog-takeover.target', 13 'obmc-fans-ready.target', 14 'obmc-host-crash@.target', 15 'obmc-host-diagnostic-mode@.target', 16 'obmc-host-force-warm-reboot@.target', 17 'obmc-host-graceful-quiesce@.target', 18 'obmc-host-quiesce@.target', 19 'obmc-host-reboot@.target', 20 'obmc-host-reset-running@.target', 21 'obmc-host-reset@.target', 22 'obmc-host-shutdown@.target', 23 'obmc-host-start-pre@.target', 24 'obmc-host-start@.target', 25 'obmc-host-started@.target', 26 'obmc-host-starting@.target', 27 'obmc-host-startmin@.target', 28 'obmc-host-stop-pre@.target', 29 'obmc-host-stop@.target', 30 'obmc-host-stopped@.target', 31 'obmc-host-stopping@.target', 32 'obmc-host-timeout@.target', 33 'obmc-host-warm-reboot@.target', 34 'obmc-power-off@.target', 35 'obmc-power-on@.target', 36 'obmc-power-reset-on@.target', 37 'obmc-power-start-pre@.target', 38 'obmc-power-start@.target', 39 'obmc-power-stop-pre@.target', 40 'obmc-power-stop@.target', 41] 42 43fs = import('fs') 44foreach u : unit_files 45 fs.copyfile( 46 u, 47 install: true, 48 install_dir: systemd_system_unit_dir 49 ) 50endforeach 51