Automount /mnt/rom/user partition
This commit is contained in:
parent
c50e63d550
commit
75dc0a693a
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Automount user partition with default settings
|
||||||
|
|
||||||
|
[Automount]
|
||||||
|
Where=/mnt/rom/user
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Mount user partition with default settings
|
||||||
|
|
||||||
|
[Mount]
|
||||||
|
What=/dev/mtdblock9
|
||||||
|
Where=/mnt/rom/user
|
||||||
|
Type=jffs2
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD;md5=377548
|
||||||
SRC_URI = "file://lc15-sysdev-remap \
|
SRC_URI = "file://lc15-sysdev-remap \
|
||||||
file://mnt-rom-factory.automount \
|
file://mnt-rom-factory.automount \
|
||||||
file://mnt-rom-factory.mount \
|
file://mnt-rom-factory.mount \
|
||||||
|
file://mnt-rom-user.automount \
|
||||||
|
file://mnt-rom-user.mount \
|
||||||
file://mnt-storage.automount \
|
file://mnt-storage.automount \
|
||||||
file://mnt-storage.mount \
|
file://mnt-storage.mount \
|
||||||
file://lc15-sysdev-remap.service"
|
file://lc15-sysdev-remap.service"
|
||||||
|
@ -23,7 +25,7 @@ PR := "${PR}.${REPOGITFN}"
|
||||||
|
|
||||||
SYSTEMD_PACKAGES = "${PN}"
|
SYSTEMD_PACKAGES = "${PN}"
|
||||||
SYSTEMD_AUTO_ENABLE_${PN}="enable"
|
SYSTEMD_AUTO_ENABLE_${PN}="enable"
|
||||||
SYSTEMD_SERVICE_${PN} = "lc15-sysdev-remap.service mnt-rom-factory.automount mnt-rom-factory.mount mnt-storage.automount mnt-storage.mount"
|
SYSTEMD_SERVICE_${PN} = "lc15-sysdev-remap.service mnt-rom-factory.automount mnt-rom-factory.mount mnt-rom-user.automount mnt-rom-user.mount mnt-storage.automount mnt-storage.mount"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}${bindir}
|
install -d ${D}${bindir}
|
||||||
|
@ -32,6 +34,8 @@ do_install() {
|
||||||
install -m 0644 ${S}/lc15-sysdev-remap.service ${D}${systemd_unitdir}/system/
|
install -m 0644 ${S}/lc15-sysdev-remap.service ${D}${systemd_unitdir}/system/
|
||||||
install -m 0644 ${S}/mnt-rom-factory.automount ${D}${systemd_unitdir}/system/
|
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-rom-factory.mount ${D}${systemd_unitdir}/system/
|
||||||
|
install -m 0644 ${S}/mnt-rom-user.automount ${D}${systemd_unitdir}/system/
|
||||||
|
install -m 0644 ${S}/mnt-rom-user.mount ${D}${systemd_unitdir}/system/
|
||||||
install -m 0644 ${S}/mnt-storage.automount ${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/
|
install -m 0644 ${S}/mnt-storage.mount ${D}${systemd_unitdir}/system/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue