From 6d924e90304f6378a2438b6178f7a195e9cf24a0 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 20 Dec 2021 14:41:48 +0100 Subject: Install a SMP kernel by default in the 32bit ISO The non-SMP kernels refuse to start the init script in initramfs since 5.15.x --- make_slackware_live.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 1b25fa4..61f5191 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -84,8 +84,9 @@ MOKCERT="" # to be defined through the '-S' parameter: MOKPRIVKEY="" -# Set to YES if you want to use the SMP kernel on 32bit Slackware: -SMP32=${SMP32:-"NO"} +# Set to NO if you want to use the non-SMP kernel on 32bit Slackware. +# note: unsupported option since Slackware enabled preemption in 5.14.15. +SMP32=${SMP32:-"YES"} # Include support for NFS root (PXE boot), will increase size of the initrd: NFSROOTSUP=${NFSROOTSUP:-"YES"} @@ -492,6 +493,12 @@ function install_pkgs() { break fi done + # Install a SMP kernel/modules if requested: + if [ "${PKG}" = "kernel-generic" ] && [ "$SL_ARCH" != "x86_64" -a "$SMP32" = "YES" ]; then + PKG="kernel-generic-smp" + elif [ "${PKG}" = "kernel-modules" ] && [ "$SL_ARCH" != "x86_64" -a "$SMP32" = "YES" ]; then + PKG="kernel-modules-smp" + fi # Now decide what to do: if [ -z "${PKG}" ]; then # Package removal: -- cgit v1.2.3