From 017eaba887b33f431e161934a282321f76909d14 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 27 May 2016 22:40:52 +0200 Subject: XFCE: take into account that the 32bit ISO does not contain a SMP kernel. In order to successfully generate a 32bit ISO of the small XFCE variant, the variable SMP32 needs to be set to "NO" because the package for the SMP kernel will not be added (due to size constraints). Example commandline to achieve this: SMP32=NO ./make_slackware_live.sh -d XFCE -a i586 --- make_slackware_live.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 2c370c9..30ca041 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1701,7 +1701,11 @@ if [ "$NFSROOTSUP" = "YES" ]; then etc/dhcpcd.conf.new mv ${LIVE_ROOTDIR}/boot/initrd-tree/etc/dhcpcd.conf{.new,} # Add just the right kernel network modules by pruning unneeded stuff: - KMODS_PKG=$(find ${DEF_SL_PKGROOT}/../ -name "kernel-modules-*$(echo $KGEN |tr - _)*.t?z" |head -1) + if [ "$SL_ARCH" = "x86_64" -o "$SMP32" = "NO" ]; then + KMODS_PKG=$(find ${DEF_SL_PKGROOT}/../ -name "kernel-modules-*$(echo $KGEN |tr - _)*.t?z" |grep -v smp |head -1) + else + KMODS_PKG=$(find ${DEF_SL_PKGROOT}/../ -name "kernel-modules-*$(echo $KGEN |tr - _)*.t?z" |grep smp |head -1) + fi KMODS_TEMP=$(mktemp -d -p /mnt -t liveslak.XXXXXX) if [ ! -d $KMODS_TEMP ]; then echo "*** Failed to create a temporary extraction directory for the initrd!" -- cgit v1.2.3