aboutsummaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-12-20 14:41:48 +0100
committer Eric Hameleers <alien@slackware.com>2021-12-20 14:41:48 +0100
commit6d924e90304f6378a2438b6178f7a195e9cf24a0 (patch)
treee5332507b6c6a2ba6c0961cdb78029ef5bb73016 /make_slackware_live.sh
parent42d8a3c6e58e4406d523da7dc5c3d66de55cc272 (diff)
downloadliveslak-6d924e90304f6378a2438b6178f7a195e9cf24a0.tar.gz
liveslak-6d924e90304f6378a2438b6178f7a195e9cf24a0.tar.xz
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
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh11
1 files changed, 9 insertions, 2 deletions
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: