initramfs-live-boot_1.0.bb 502 B

1234567891011121314151617181920
  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} = "udev udev-extraconf"
  6. SRC_URI = "file://init-live.sh"
  7. S = "${WORKDIR}"
  8. do_install() {
  9. install -m 0755 ${WORKDIR}/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}"