[systemd-devel] mounting a UBIFS filesystem

Cliff Brake cliff.brake at gmail.com
Thu Jul 26 16:07:41 PDT 2012


Below is what I ended up with.  Let me know if there are better/more
standard ways to do this.

Thanks,
Cliff

----------------------------
my-app.service:
Wants=data.mount

----------------------------
data.mount:
[Unit]
Description=Mount data partition
Requires=data-attach.service
After=data-attach.service (this is important, otherwise the mount command
runs before ubiattach finishes -- had me stumped for awhile)

[Mount]
What=ubi1:data
Where=/data
Type=ubifs

----------------------------
data-attach.service:
[Unit]
Description=Attach data ubi partition

[Service]
Type=oneshot
ExecStart=/usr/sbin/ubiattach /dev/ubi_ctrl -m 6


-- 
=================
http://bec-systems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120726/e10c11c8/attachment.html>


More information about the systemd-devel mailing list