From 459a33ba2e4bd9b801889e4694b2c47c371f18b8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 25 Apr 2017 14:15:47 +0200 Subject: [rfs-stage31] Detect kernel<->initramfs mismatch --- core/rootfs/rootfs-stage31/data/init | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'core/rootfs/rootfs-stage31/data/init') diff --git a/core/rootfs/rootfs-stage31/data/init b/core/rootfs/rootfs-stage31/data/init index 01a3a5c1..98ee1a61 100755 --- a/core/rootfs/rootfs-stage31/data/init +++ b/core/rootfs/rootfs-stage31/data/init @@ -16,6 +16,39 @@ # set PATH correctly export PATH=/bin:/sbin:/usr/bin:/usr/sbin +# IMPORTANT - check if kernel modules in initrams match kernel version +BASEDIR="/lib/modules/$(uname -r)/kernel/drivers" +for dir in gpu hid misc; do + if ! [ -d "$BASEDIR/$dir" ]; then + cat <