diff options
Diffstat (limited to 'recipes-core/initrdscripts/readonly-rootfs-overlay-init-script.inc')
-rw-r--r-- | recipes-core/initrdscripts/readonly-rootfs-overlay-init-script.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-core/initrdscripts/readonly-rootfs-overlay-init-script.inc b/recipes-core/initrdscripts/readonly-rootfs-overlay-init-script.inc new file mode 100644 index 0000000..947246b --- /dev/null +++ b/recipes-core/initrdscripts/readonly-rootfs-overlay-init-script.inc | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "Read only rootfs with overlay init script" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
4 | DEPENDS = "virtual/kernel" | ||
5 | SRC_URI = "file://init-readonly-rootfs-overlay-boot.sh" | ||
6 | |||
7 | S = "${WORKDIR}" | ||
8 | |||
9 | do_install() { | ||
10 | install -m 0755 ${WORKDIR}/init-readonly-rootfs-overlay-boot.sh ${D}/init | ||
11 | install -d "${D}/media/rfs/ro" | ||
12 | install -d "${D}/media/rfs/rw" | ||
13 | } | ||
14 | |||
15 | FILES_${PN} += " /init /media/rfs" | ||
16 | |||
17 | # Due to kernel dependency | ||
18 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||