blob: f302e03691f3ffa35e1cef227326f3d61a192a5c [file] [log] [blame]
Lei YUd8c9eea2021-12-16 16:08:30 +08001[Unit]
2Description=Flash image-bmc to the alt chip
3
4[Service]
5Type=oneshot
6RemainAfterExit=no
Lei YUb5171ac2021-12-16 18:36:27 +08007ExecStartPre=-/bin/systemctl stop xyz.openbmc_project.Software.Sync.service
8ExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rofs-alt
9ExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rwfs-alt
Lei YUd8c9eea2021-12-16 16:08:30 +080010ExecStart=/usr/sbin/flashcp /tmp/images/%i/image-bmc /dev/mtd/alt-bmc
Lei YUb5171ac2021-12-16 18:36:27 +080011ExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs squashfs alt-rofs rofs-alt
12ExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs jffs2 alt-rwfs rwfs-alt
13ExecStartPost=-/bin/systemctl start xyz.openbmc_project.Software.Sync.service