From 0d26edc49eb426f8f312ecca24bb905dae63991f Mon Sep 17 00:00:00 2001 From: Andrea Adami Date: Sun, 8 Nov 2009 14:13:54 +0100 Subject: kexecboot-cfg: sync boot.cfg with upstream. Bump PR. --- recipes/kexecboot/kexecboot-cfg_0.1.bb | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'recipes/kexecboot/kexecboot-cfg_0.1.bb') diff --git a/recipes/kexecboot/kexecboot-cfg_0.1.bb b/recipes/kexecboot/kexecboot-cfg_0.1.bb index f8172f442e..b867457e22 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 = "r6" +PR = "r7" PACKAGE_ARCH = "${MACHINE_ARCH}" SRC_URI = "file://icon.xpm" @@ -36,15 +36,33 @@ do_configure_prepend () { } do_install_prepend () { - echo "DEFAULT=${DISTRO}" > ${S}/boot.cfg + + echo "# Show this label in kexecboot menu." >> ${S}/boot.cfg echo "LABEL=${DISTRO}" >> ${S}/boot.cfg + echo "#" >> ${S}/boot.cfg + + echo "# Specify full path to the kernel." >> ${S}/boot.cfg echo "KERNEL=/boot/${KERNEL_IMAGETYPE}" >> ${S}/boot.cfg + echo "#" >> ${S}/boot.cfg + + echo "# Append this tags to the kernel cmdline." >> ${S}/boot.cfg echo "APPEND=${CMDLINE}" >> ${S}/boot.cfg - echo "ICON=/boot/icon.xpm" >> ${S}/boot.cfg + echo "#" >> ${S}/boot.cfg + + echo "# Specify full path for a custom distro-icon for the menu-item." >> ${S}/boot.cfg + echo "# If not set, use device-icons as default (NAND, SD, CF, ...)." >> ${S}/boot.cfg + echo "#ICON=/boot/icon.xpm" >> ${S}/boot.cfg + echo "#" >> ${S}/boot.cfg + + echo "# Priority of item in kexecboot menu." >> ${S}/boot.cfg + echo "# Items with highest priority will be shown at top of menu." >> ${S}/boot.cfg + echo "# Default: 0 (lowest, ordered by device ordering)" >> ${S}/boot.cfg + echo "#PRIORITY=10" >> ${S}/boot.cfg + echo "#" >> ${S}/boot.cfg } do_install () { - install -d ${D}/boot - install -m 0644 boot.cfg ${D}/boot/boot.cfg - install -m 0644 icon.xpm ${D}/boot/icon.xpm + install -d ${D}/boot + install -m 0644 boot.cfg ${D}/boot/boot.cfg + install -m 0644 icon.xpm ${D}/boot/icon.xpm } -- cgit 1.2.3-korg