initramfs-live-boot-tiny_1.0.bb 490 B

12345678910111213141516171819
  1. SUMMARY = "Live image init script"
  2. LICENSE = "MIT"
  3. LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
  4. DEPENDS = "virtual/kernel"
  5. RDEPENDS:${PN} = "busybox-mdev"
  6. SRC_URI = "file://init-live.sh"
  7. S = "${UNPACKDIR}"
  8. do_install() {
  9. install -m 0755 ${S}/init-live.sh ${D}/init
  10. install -d ${D}/dev
  11. mknod -m 622 ${D}/dev/console c 5 1
  12. }
  13. FILES:${PN} += " /init /dev "
  14. # Due to kernel dependency
  15. PACKAGE_ARCH = "${MACHINE_ARCH}"