aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/firmware/files/lib-firmware-system.service
blob: c4b4e2a318a16bccfeb05b8b270283e0fb8ecebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[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
# sda7:
#  - system_b with older partition scheme
#  - single system with newer partition cheme
ExecStart=mount -t ext4 -o ro /dev/sda7 /lib/firmware/system
ExecStop=umount /lib/firmware/system