1[Unit]
2Description=Mount BMC rofs volumes after a reboot
3Before=xyz.openbmc_project.Software.BMC.Updater.service
4
5[Service]
6Type=oneshot
7RemainAfterExit=no
8ExecStart=/bin/mkdir -p @MEDIA_DIR@/rofs-a
9ExecStart=/bin/mkdir -p @MEDIA_DIR@/rofs-b
10ExecStart=/bin/mkdir -p @MEDIA_DIR@/hostfw
11ExecStart=-/bin/sh -c '/bin/mount PARTLABEL=rofs-a @MEDIA_DIR@/rofs-a -t ext4 -o ro || /bin/rmdir @MEDIA_DIR@/rofs-a'
12ExecStart=-/bin/sh -c '/bin/mount PARTLABEL=rofs-b @MEDIA_DIR@/rofs-b -t ext4 -o ro || /bin/rmdir @MEDIA_DIR@/rofs-b'
13ExecStart=-/bin/mount PARTLABEL=hostfw @MEDIA_DIR@/hostfw -t ext4
14
15[Install]
16WantedBy=xyz.openbmc_project.Software.BMC.Updater.service
17