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 0000000000..9d804fc3a7 --- /dev/null +++ b/meta/packages/initrdscripts/files/init-boot.sh | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | mkdir /proc | ||
4 | mkdir /sys | ||
5 | mount -t proc proc /proc | ||
6 | mount -t sysfs sysfs /sys | ||
7 | |||
8 | 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 0000000000..de3f932c8e --- /dev/null +++ b/meta/packages/initrdscripts/initramfs-boot_1.0.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | DESCRIPTON = "A live image init script" | ||
2 | |||
3 | SRC_URI = "file://init-boot.sh" | ||
4 | |||
5 | PR = "r0" | ||
6 | |||
7 | do_install() { | ||
8 | install -m 0755 ${WORKDIR}/init-boot.sh ${D}/init | ||
9 | } | ||
10 | |||
11 | PACKAGE_ARCH = "all" | ||
12 | FILES_${PN} += " /init " | ||