initramfs-kexec: initial commit. partly closes 3739.
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>
Tue, 5 Feb 2008 22:02:19 +0000 (22:02 +0000)
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>
Tue, 5 Feb 2008 22:02:19 +0000 (22:02 +0000)
packages/initrdscripts/initramfs-kexec_1.0.bb [new file with mode: 0644]

diff --git a/packages/initrdscripts/initramfs-kexec_1.0.bb b/packages/initrdscripts/initramfs-kexec_1.0.bb
new file mode 100644 (file)
index 0000000..b5bf497
--- /dev/null
@@ -0,0 +1,25 @@
+DESCRIPTON = "A init script that mounts a device and kexecs a new kernel from it."
+PR = "r3"
+
+do_compile() {
+        cat > init.sh << EOF
+#!/bin/sh
+/bin/mount -t proc proc /proc
+/bin/mount -t ${ROOTFS} /dev/${ROOTDEV} /mnt
+/usr/sbin/kexec -l /mnt/zImage
+/usr/sbin/kexec -e
+EOF
+}
+
+do_install() {
+        install -m 0755 ${S}/init.sh ${D}/init
+        install -d ${D}/proc
+        install -d ${D}/mnt
+}
+
+PACKAGE_ARCH = "all"
+
+FILES_${PN} = "/init /proc /mnt"
+
+ROOTDEV = "mtdblock2"
+ROOTFS = "jffs2"