init: warn on obvious KERNEL/SYSTEM mismatch

... because rpi / netboot users still cant get it
This commit is contained in:
Stefan Saraev 2014-11-23 19:06:08 +02:00
parent 16a5a30e28
commit 79d8668907
2 changed files with 14 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# #
# Automatically generated make config: don't edit # Automatically generated make config: don't edit
# Busybox version: 1.22.1 # Busybox version: 1.22.1
# Thu Apr 24 17:06:16 2014 # Sun Nov 23 18:41:18 2014
# #
CONFIG_HAVE_DOT_CONFIG=y CONFIG_HAVE_DOT_CONFIG=y
@ -286,7 +286,7 @@ CONFIG_FEATURE_FANCY_TAIL=y
# CONFIG_FEATURE_TEE_USE_BLOCK_IO is not set # CONFIG_FEATURE_TEE_USE_BLOCK_IO is not set
# CONFIG_TRUE is not set # CONFIG_TRUE is not set
# CONFIG_TTY is not set # CONFIG_TTY is not set
# CONFIG_UNAME is not set CONFIG_UNAME=y
# CONFIG_UNEXPAND is not set # CONFIG_UNEXPAND is not set
# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set # CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set
# CONFIG_UNIQ is not set # CONFIG_UNIQ is not set

View File

@ -599,6 +599,18 @@
mount --move /storage /sysroot/storage mount --move /storage /sysroot/storage
fi fi
if [ ! -d "/sysroot/lib/modules/$(uname -r)/" -a -f "/sysroot/usr/lib/systemd/systemd" ]; then
echo ""
echo "NEVER TOUCH boot= in extlinux.conf / cmdline.txt"
echo "if you dont know what you are doing"
echo ""
echo "your installation is now broken"
echo ""
echo "normal boot in 60s..."
usleep 60000000
fi
[ -f "/sysroot/usr/lib/systemd/systemd" ] || error "final_check" "Could not find system." [ -f "/sysroot/usr/lib/systemd/systemd" ] || error "final_check" "Could not find system."
} }