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,20 @@
[{
"blob": "/flash/image",
"handler": {
"type": "file",
"path": "/run/initramfs/bmc-image"
},
"actions": {
"preparation": {
"type": "skip"
},
"verification": {
"type": "systemd",
"unit": "noverify-bmc-verify.service"
},
"update": {
"type": "systemd",
"unit": "noverify-bmc-update.service"
}
}
}]
@@ -0,0 +1,9 @@
[Unit]
Description=Commit image for update and reboot
[Service]
Type=oneshot
ExecStart=/bin/mv /run/initramfs/bmc-image-verified /run/initramfs/image-bmc
# This command is intentionally blocking to ensure this unit doesn't complete
# before the BMC reboots.
ExecStart=/usr/bin/systemctl start --job-mode=replace-irreversibly reboot.target
@@ -0,0 +1,6 @@
[Unit]
Description=Don't verify the image, just stage it for update
[Service]
Type=oneshot
ExecStart=/bin/mv /run/initramfs/bmc-image /run/initramfs/bmc-image-verified