From a2d06cfbf0b255f01d7214565e8fad64aa99d811 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 8 Mar 2008 20:58:12 +0000 Subject: initramfs-module-bootldr-buster: initramfs module to fight Compaq bootldr stupidity. --- packages/initrdscripts/files/01-bootldr-buster.sh | 11 +++++++++++ .../initrdscripts/initramfs-module-bootldr-buster_1.0.bb | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 packages/initrdscripts/files/01-bootldr-buster.sh create mode 100644 packages/initrdscripts/initramfs-module-bootldr-buster_1.0.bb (limited to 'packages/initrdscripts') diff --git a/packages/initrdscripts/files/01-bootldr-buster.sh b/packages/initrdscripts/files/01-bootldr-buster.sh new file mode 100644 index 0000000000..7bf312ad66 --- /dev/null +++ b/packages/initrdscripts/files/01-bootldr-buster.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +cmdl=`cat /proc/cmdline` +if expr "$cmdl" : '.*mtdparts=ipaq' > /dev/null; then + echo "!!!!!!!!" + echo "Detected Compaq bootldr or derivative" + echo "Kernel command line is assumed to be bogus and ignored" + echo "!!!!!!!!" + CMDLINE=" " + sleep 3 +fi diff --git a/packages/initrdscripts/initramfs-module-bootldr-buster_1.0.bb b/packages/initrdscripts/initramfs-module-bootldr-buster_1.0.bb new file mode 100644 index 0000000000..bd10f16873 --- /dev/null +++ b/packages/initrdscripts/initramfs-module-bootldr-buster_1.0.bb @@ -0,0 +1,12 @@ +SRC_URI = "file://01-bootldr-buster.sh" +PR = "r0" +DESCRIPTION = "An initramfs module for ignoring bogus kernel commandline from Compaq bootldr" +RDEPENDS = "initramfs-uniboot" + +do_install() { + install -d ${D}/initrd.d + install -m 0755 ${WORKDIR}/01-bootldr-buster.sh ${D}/initrd.d/ +} + +PACKAGE_ARCH = "all" +FILES_${PN} += " /initrd.d/* " -- cgit v1.2.3