diff options
author | Simon Rettberg | 2022-09-09 15:27:19 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-09-09 15:27:19 +0200 |
commit | 2dddcaac381cdd34d4b0e836c253ffc3aabcccf4 (patch) | |
tree | f2310ca5ff9a90c8c031f79b63838eb5800f925b /core/rootfs/rootfs-stage31 | |
parent | [remote-access/xorg] Use OutputClass instead of Device for dynamic stuff (diff) | |
download | mltk-2dddcaac381cdd34d4b0e836c253ffc3aabcccf4.tar.gz mltk-2dddcaac381cdd34d4b0e836c253ffc3aabcccf4.tar.xz mltk-2dddcaac381cdd34d4b0e836c253ffc3aabcccf4.zip |
[rootfs-stage31] Relax kernel mismatch check
Diffstat (limited to 'core/rootfs/rootfs-stage31')
-rwxr-xr-x | core/rootfs/rootfs-stage31/data/init | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/core/rootfs/rootfs-stage31/data/init b/core/rootfs/rootfs-stage31/data/init index cb0b70a0..798831f2 100755 --- a/core/rootfs/rootfs-stage31/data/init +++ b/core/rootfs/rootfs-stage31/data/init @@ -42,11 +42,18 @@ haveged --pidfile /tmp/haveged.pid # Tries to put it in /run by default, which d # IMPORTANT - check if kernel modules in initrams match kernel version BASEDIR="/lib/modules/$(uname -r)/kernel/drivers" -for dir in gpu hid; do - if ! [ -d "$BASEDIR/$dir" ]; then - echo "0" > /proc/sys/kernel/printk - reset - cat <<WARNING +found= +for dir in gpu hid net; do + if [ -d "$BASEDIR/$dir" ]; then + found=1 + break + fi +done + +if [ -z "$found" ]; then + echo "0" > /proc/sys/kernel/printk + reset + cat <<WARNING + + + @@ -69,11 +76,10 @@ for dir in gpu hid; do + + + + + + + + + + + + + + + WARNING - while true; do - read some garbage - done - fi -done + while true; do + read some garbage + done +fi # preparations for mounting stage3.2 FUTURE_ROOT="/dev/shm/uniontmp" |