blob: 5abab7f211df32765702b9582deaeb2a4f55aa17 [file] [log] [blame]
Adriana Kobylak855404d2017-03-07 14:32:08 -06001[Unit]
Adriana Kobylak22b01152017-04-13 12:36:01 -05002Description=Mount UBIFS volume pnor-rw-%I
Adriana Kobylak855404d2017-03-07 14:32:08 -06003Requires=obmc-flash-bios-ubiattach.service
4After=obmc-flash-bios-ubiattach.service
5
6[Service]
7Type=oneshot
8RemainAfterExit=yes
Adriana Kobylak22b01152017-04-13 12:36:01 -05009ExecStart=/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'