diff options
author | Claudius Heine <ch@denx.de> | 2016-10-21 11:11:26 +0200 |
---|---|---|
committer | Claudius Heine <ch@denx.de> | 2016-10-21 11:17:17 +0200 |
commit | b1efdfa75d9a0ca475d92e8b5ea1eba165626231 (patch) | |
tree | 0c6fbf145a5e9b9e870243c7a3a29289656c1d99 /recipes-core/initrdscripts/readonly-rootfs-overlay-init-script.inc | |
parent | 1c55880c8cbba009e07645e3a7b26f2bf2a5756c (diff) | |
download | meta-readonly-rootfs-overlay-b1efdfa75d9a0ca475d92e8b5ea1eba165626231.tar.gz |
added support for running this initscript directly in the image
removed udev
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}" | ||