summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2009-04-25 10:32:08 +0200
committerAndrea Adami <andrea.adami@gmail.com>2009-04-25 10:34:23 +0200
commitfb4dc83ea69ef1f4d5bd62351c221887f5634668 (patch)
tree7b648ad4cd258807901de9881d4084e5ebabfc66 /recipes
parenta4a7d90f3e9eabb1dd99762391a26c5687b5b80a (diff)
kexecboot-cfg: initial deploy of /boot/boot.cfg (for kexecboot_0.6)
Diffstat (limited to 'recipes')
-rw-r--r--recipes/kexecboot/kexecboot-cfg_0.1.bb13
1 files changed, 12 insertions, 1 deletions
diff --git a/recipes/kexecboot/kexecboot-cfg_0.1.bb b/recipes/kexecboot/kexecboot-cfg_0.1.bb
index d83f6529df..a2145f9bc8 100644
--- a/recipes/kexecboot/kexecboot-cfg_0.1.bb
+++ b/recipes/kexecboot/kexecboot-cfg_0.1.bb
@@ -2,7 +2,7 @@ LICENSE = "GPL"
SECTION = "base"
DESCRIPTION = "Configuration file for kexecboot"
-PR = "r2"
+PR = "r3"
PACKAGE_ARCH = "${MACHINE_ARCH}"
CMDLINE_CON = "console=ttyS0,115200n8 console=tty1 noinitrd"
@@ -19,7 +19,18 @@ CMDLINE_ROTATE_collie = "fbcon=rotate:1"
CMDLINE_ROTATE_poodle = "fbcon=rotate:1"
FILES_${PN} += "/boot/*"
+
+do_install_prepend () {
+ echo "DEFAULT" > ${S}/boot.cfg
+ echo "LABEL=${DISTRO}" >> ${S}/boot.cfg
+ echo "KERNEL=/boot/${KERNEL_IMAGETYPE}" >> ${S}/boot.cfg
+ echo "APPEND=${CMDLINE_CON} ${CMDLINE_MEM} ${CMDLINE_ROTATE} ${CMDLINE_OTHER} ${CMDLINE_DEBUG}" >> ${S}/boot.cfg
+}
+
do_install () {
install -d ${D}/boot
+ install -m 0644 boot.cfg ${D}/boot/boot.cfg
+
+ # old kexecboot versions < 0.6 need '/boot/kernel-cmdline'
echo "${CMDLINE_CON} ${CMDLINE_MEM} ${CMDLINE_ROTATE} ${CMDLINE_OTHER} ${CMDLINE_DEBUG}"> ${D}/boot/kernel-cmdline
}