aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/firmware/files/lib-firmware-system.service
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/firmware/files/lib-firmware-system.service')
-rw-r--r--recipes-bsp/firmware/files/lib-firmware-system.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-bsp/firmware/files/lib-firmware-system.service b/recipes-bsp/firmware/files/lib-firmware-system.service
new file mode 100644
index 0000000..2e6efc7
--- /dev/null
+++ b/recipes-bsp/firmware/files/lib-firmware-system.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Mount partition with system root for for firmware files ('system_a')
+ConditionPathExists=/lib/firmware/system
+Before=systemd-udevd-control.socket
+After=local-fs-pre.target
+Before=local-fs.target
+Before=umount.target
+Conflicts=umount.target
+DefaultDependencies=no
+
+[Install]
+WantedBy=local-fs.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+# sda6 = system_a
+ExecStart=mount -t ext4 -o ro /dev/sda6 /lib/firmware/system
+ExecStop=umount /lib/firmware/system