From 62f1eaed4242406c5a8cf3599555f962c5ea4bd3 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 14 Jul 2017 14:09:57 +0200 Subject: [PATCH] sysmobts2100: automount extra partitions --- .../lc15-sysdev-remap/files/mnt-rom-factory.automount | 8 ++++++++ .../lc15-sysdev-remap/files/mnt-rom-factory.mount | 10 ++++++++++ .../lc15-sysdev-remap/files/mnt-storage.automount | 8 ++++++++ .../lc15-sysdev-remap/files/mnt-storage.mount | 10 ++++++++++ .../lc15-sysdev-remap/lc15-sysdev-remap_1.0.bb | 10 ++++++++++ 5 files changed, 46 insertions(+) create mode 100644 recipes-support/lc15-sysdev-remap/files/mnt-rom-factory.automount create mode 100644 recipes-support/lc15-sysdev-remap/files/mnt-rom-factory.mount create mode 100644 recipes-support/lc15-sysdev-remap/files/mnt-storage.automount create mode 100644 recipes-support/lc15-sysdev-remap/files/mnt-storage.mount diff --git a/recipes-support/lc15-sysdev-remap/files/mnt-rom-factory.automount b/recipes-support/lc15-sysdev-remap/files/mnt-rom-factory.automount new file mode 100644 index 0000000..2341173 --- /dev/null +++ b/recipes-support/lc15-sysdev-remap/files/mnt-rom-factory.automount @@ -0,0 +1,8 @@ +[Unit] +Description=Automount ROM partition with factory defaults + +[Automount] +Where=/mnt/rom/factory + +[Install] +WantedBy=multi-user.target diff --git a/recipes-support/lc15-sysdev-remap/files/mnt-rom-factory.mount b/recipes-support/lc15-sysdev-remap/files/mnt-rom-factory.mount new file mode 100644 index 0000000..d975d75 --- /dev/null +++ b/recipes-support/lc15-sysdev-remap/files/mnt-rom-factory.mount @@ -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 diff --git a/recipes-support/lc15-sysdev-remap/files/mnt-storage.automount b/recipes-support/lc15-sysdev-remap/files/mnt-storage.automount new file mode 100644 index 0000000..0ab9e07 --- /dev/null +++ b/recipes-support/lc15-sysdev-remap/files/mnt-storage.automount @@ -0,0 +1,8 @@ +[Unit] +Description=Automount storage partition + +[Automount] +Where=/mnt/storage + +[Install] +WantedBy=multi-user.target diff --git a/recipes-support/lc15-sysdev-remap/files/mnt-storage.mount b/recipes-support/lc15-sysdev-remap/files/mnt-storage.mount new file mode 100644 index 0000000..33203ae --- /dev/null +++ b/recipes-support/lc15-sysdev-remap/files/mnt-storage.mount @@ -0,0 +1,10 @@ +[Unit] +Description=Mount storage partition + +[Mount] +What=/dev/mmcblk0p4 +Where=/mnt/storage +Type=ext4 + +[Install] +WantedBy=multi-user.target diff --git a/recipes-support/lc15-sysdev-remap/lc15-sysdev-remap_1.0.bb b/recipes-support/lc15-sysdev-remap/lc15-sysdev-remap_1.0.bb index 00a9118..5e42f68 100644 --- a/recipes-support/lc15-sysdev-remap/lc15-sysdev-remap_1.0.bb +++ b/recipes-support/lc15-sysdev-remap/lc15-sysdev-remap_1.0.bb @@ -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} \