Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,8 @@
[Unit]
Description=Ampere Computing LLC Power OFF Chassis
[Service]
RemainAfterExit=no
Type=oneshot
ExecStart=/usr/libexec/ampere-hostctrl/ampere_power_util.sh mb hotswap
SyslogIdentifier=ampere_power_util.sh
@@ -0,0 +1,11 @@
[Unit]
Description=Ampere Computing LLC Power OFF Chassis
Requires=phosphor-wait-power-off@%i.service
Before=phosphor-wait-power-off@%i.service
Conflicts=obmc-chassis-poweron@0.target
[Service]
RemainAfterExit=no
Type=oneshot
ExecStart=/usr/libexec/ampere-hostctrl/ampere_power_util.sh mb off
SyslogIdentifier=ampere_power_util.sh
@@ -0,0 +1,9 @@
[Unit]
Description=Ampere Computing LLC Power ON Chassis
Conflicts=obmc-chassis-poweroff@0.target
[Service]
RemainAfterExit=yes
Type=oneshot
ExecStart=/usr/libexec/ampere-hostctrl/ampere_power_util.sh mb on
SyslogIdentifier=ampere_power_util.sh
@@ -0,0 +1,12 @@
[Unit]
Description=Ampere Computing LLC power cycle service
Conflicts=obmc-host-start@0.target
OnFailure=obmc-chassis-powerreset@0.target
Wants=kudo-bios-verify.service
After=kudo-bios-verify.service
[Service]
RemainAfterExit=no
Type=oneshot
ExecStart=/usr/libexec/ampere-hostctrl/ampere_power_util.sh mb host_cycle
SyslogIdentifier=ampere_power_util.sh
@@ -0,0 +1,12 @@
[Unit]
Description=Ampere Computing LLC power cycle service
Conflicts=obmc-host-start@0.target
OnFailure=obmc-chassis-powerreset@0.target
Wants=kudo-bios-verify.service
After=kudo-bios-verify.service
[Service]
RemainAfterExit=no
Type=oneshot
ExecStart=/usr/libexec/ampere-hostctrl/ampere_power_util.sh mb host_reset
SyslogIdentifier=ampere_power_util.sh
@@ -0,0 +1,11 @@
[Unit]
Description=Ampere Computing LLC host shutdown ACK
Requires=phosphor-wait-power-off@%i.service
Before=phosphor-wait-power-off@%i.service
Conflicts=obmc-chassis-poweron@0.target
[Service]
RemainAfterExit=no
Type=oneshot
ExecStart=/usr/libexec/ampere-hostctrl/ampere_power_util.sh mb shutdown_ack
SyslogIdentifier=ampere_power_util.sh
@@ -0,0 +1,10 @@
[Unit]
Description=Ampere Computing LLC graceful shutdown host
Conflicts=obmc-host-start@0.target
OnFailure=obmc-chassis-poweroff@0.target
[Service]
RemainAfterExit=no
Type=oneshot
ExecStart=/usr/libexec/ampere-hostctrl/ampere_power_util.sh mb graceful_shutdown
SyslogIdentifier=ampere_power_util.sh