diff options
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/initrdscripts/files/init-boot.sh | 8 | ||||
-rw-r--r-- | meta/packages/initrdscripts/initramfs-boot_1.0.bb | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta/packages/initrdscripts/files/init-boot.sh b/meta/packages/initrdscripts/files/init-boot.sh new file mode 100644 index 000000000..9d804fc3a --- /dev/null +++ b/meta/packages/initrdscripts/files/init-boot.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +mkdir /proc +mkdir /sys +mount -t proc proc /proc +mount -t sysfs sysfs /sys + +exec sh diff --git a/meta/packages/initrdscripts/initramfs-boot_1.0.bb b/meta/packages/initrdscripts/initramfs-boot_1.0.bb new file mode 100644 index 000000000..de3f932c8 --- /dev/null +++ b/meta/packages/initrdscripts/initramfs-boot_1.0.bb @@ -0,0 +1,12 @@ +DESCRIPTON = "A live image init script" + +SRC_URI = "file://init-boot.sh" + +PR = "r0" + +do_install() { + install -m 0755 ${WORKDIR}/init-boot.sh ${D}/init +} + +PACKAGE_ARCH = "all" +FILES_${PN} += " /init " |