diff options
author | Michael Lauer <mickey@vanille-media.de> | 2008-02-07 23:32:09 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2008-02-07 23:32:09 +0000 |
commit | ba4001fe8c00586b71fb1043795e1b99e3234025 (patch) | |
tree | ce66a6f384b00812ad533d7b8975d5f8a8bd3402 /packages/initrdscripts/initramfs-kexec_1.0.bb | |
parent | d9a05430e070a497ca4db0a3f8f746fb952b5ecd (diff) | |
parent | a962c31f95cc3e4eb996eff609e973bcd2d2fc5c (diff) |
merge of '2b4e1c7a35c118cf363c771f015c4fdfa5f84731'
and '36fe2f5bf87b5a8eedda174012a2e93f8bb5a8f5'
Diffstat (limited to 'packages/initrdscripts/initramfs-kexec_1.0.bb')
-rw-r--r-- | packages/initrdscripts/initramfs-kexec_1.0.bb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/initrdscripts/initramfs-kexec_1.0.bb b/packages/initrdscripts/initramfs-kexec_1.0.bb new file mode 100644 index 0000000000..b5bf497f37 --- /dev/null +++ b/packages/initrdscripts/initramfs-kexec_1.0.bb @@ -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" |