blob: 331ed6bc67733bd4f1df70425c7316b8d5596817 [file] [log] [blame]
Adriana Kobylak855404d2017-03-07 14:32:08 -06001[Unit]
2Description=Mount UBIFS volume pnor-rw%I
3Requires=obmc-flash-bios-ubiattach.service
4After=obmc-flash-bios-ubiattach.service
5
6[Service]
7Type=oneshot
8RemainAfterExit=yes
9ExecStart=/bin/sh -c '{sbindir}ubimkvol /dev/ubi0 -N pnor-rw%i -s 1MiB; \
10 mkdir /media/pnor-rw%i; \
11 mount -t ubifs ubi0:pnor-rw%i /media/pnor-rw%i'