[oe-commits] org.oe.angstrom-2007.12-stable applied changes from 5b39dd5751765304c0257f1ce36b2fb246b5cbaa
pfalcon commit
openembedded-commits at lists.openembedded.org
Thu Feb 21 14:48:03 UTC 2008
applied changes from 5b39dd5751765304c0257f1ce36b2fb246b5cbaa
through de1d4506659e4a712c794b322f19ea295057d8c0
initramfs-module-check-modules: An initramfs module to check modules consistency. (PaulS, Koen)
Author: pfalcon at openembedded.org
Branch: org.openembedded.angstrom-2007.12-stable
Revision: 0b85099e1b53bbd2e4e37c2941c02d96e8c84b29
ViewMTN: http://monotone.openembedded.org/revision/info/0b85099e1b53bbd2e4e37c2941c02d96e8c84b29
Files:
1
packages/initrdscripts/files/90-check-modules.sh
packages/initrdscripts/initramfs-module-check-modules_1.0.bb
Diffs:
#
# mt diff -r4bc9c51c6e9ead49abf92e4b1b3a1ec8a52113b0 -r0b85099e1b53bbd2e4e37c2941c02d96e8c84b29
#
#
#
# add_file "packages/initrdscripts/files/90-check-modules.sh"
# content [e60f755f3b8a6d72a799b68ff1a7291714bce727]
#
# add_file "packages/initrdscripts/initramfs-module-check-modules_1.0.bb"
# content [fbcef5b65fba763e3f80cb8690e058b469db5f03]
#
============================================================
--- packages/initrdscripts/files/90-check-modules.sh e60f755f3b8a6d72a799b68ff1a7291714bce727
+++ packages/initrdscripts/files/90-check-modules.sh e60f755f3b8a6d72a799b68ff1a7291714bce727
@@ -0,0 +1,24 @@
+#!/bin/sh
+# Check that modules for the current kernel exist, error out otherwise
+
+uname=`cat /proc/version`
+ver=`expr "x$uname" : 'xLinux version \([^ ]\+\) '`
+
+if [ -n "$BOOT_ROOT" -a ! -d "$BOOT_ROOT/lib/modules/$ver" ]; then
+ echo -e "\033[1m===================="
+ echo "ERROR!"
+ echo "There are no modules for this kernel"
+ echo "version ($ver) in the root file "
+ echo "system, which will lead to boot failure or"
+ echo "broken functionally. If you performed"
+ echo "a kernel upgrade, make sure that version"
+ echo "installed in root filesystem matches"
+ echo "version used in bootloader."
+ echo -e "====================\033[0m"
+ echo
+
+ echo "System halted"
+ while true; do
+ sleep 10000
+ done
+fi
============================================================
--- packages/initrdscripts/initramfs-module-check-modules_1.0.bb fbcef5b65fba763e3f80cb8690e058b469db5f03
+++ packages/initrdscripts/initramfs-module-check-modules_1.0.bb fbcef5b65fba763e3f80cb8690e058b469db5f03
@@ -0,0 +1,12 @@
+SRC_URI = "file://90-check-modules.sh"
+PR = "r0"
+DESCRIPTION = "An initramfs module for checking that kernel modules exist in rootfs"
+RDEPENDS = "initramfs-uniboot"
+
+do_install() {
+ install -d ${D}/initrd.d
+ install -m 0755 ${WORKDIR}/90-check-modules.sh ${D}/initrd.d/
+}
+
+PACKAGE_ARCH = "all"
+FILES_${PN} += " /initrd.d/* "
More information about the Openembedded-commits
mailing list