sysmobts2100: automount extra partitions
This commit is contained in:
parent
e1bcfeb0f5
commit
62f1eaed42
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Automount ROM partition with factory defaults
|
||||
|
||||
[Automount]
|
||||
Where=/mnt/rom/factory
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Mount ROM partition with factory defaults
|
||||
|
||||
[Mount]
|
||||
What=/dev/mtdblock8
|
||||
Where=/mnt/rom/factory
|
||||
Type=jffs2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Automount storage partition
|
||||
|
||||
[Automount]
|
||||
Where=/mnt/storage
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Mount storage partition
|
||||
|
||||
[Mount]
|
||||
What=/dev/mmcblk0p4
|
||||
Where=/mnt/storage
|
||||
Type=ext4
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -3,6 +3,10 @@ LICENSE = "BSD"
|
|||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD;md5=3775480a712fc46a69647678acb234cb"
|
||||
|
||||
SRC_URI = "file://lc15-sysdev-remap \
|
||||
file://mnt-rom-factory.automount \
|
||||
file://mnt-rom-factory.mount \
|
||||
file://mnt-storage.automount \
|
||||
file://mnt-storage.mount \
|
||||
file://lc15-sysdev-remap.service"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
@ -23,6 +27,12 @@ do_install() {
|
|||
install -m 0755 ${S}/lc15-sysdev-remap ${D}${bindir}/lc15-sysdev-remap
|
||||
install -m 0644 ${S}/lc15-sysdev-remap.service ${D}${systemd_unitdir}/system/
|
||||
ln -sf ../lc15-sysdev-remap.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
install -m 0644 ${S}/mnt-rom-factory.automount ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${S}/mnt-rom-factory.mount ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${S}/mnt-storage.automount ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${S}/mnt-storage.mount ${D}${systemd_unitdir}/system/
|
||||
ln -sf ../mnt-rom-factory.automount ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
ln -sf ../mnt-storage.automount ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
}
|
||||
|
||||
FILES_${PN} += "${bindir} \
|
||||
|
|
Loading…
Reference in New Issue