aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2024-11-02 15:35:49 +0100
committer Eric Hameleers <alien@slackware.com>2024-11-02 15:35:49 +0100
commit47c16850bfba8ccbeea871f2b30068e86e3ade11 (patch)
treefb3855bc7b67f5ea88785ff3e0bb7019af485c8b
parentf6f00e1775a153a04db2d2d76b09728417612f9e (diff)
downloadliveslak-47c16850bfba8ccbeea871f2b30068e86e3ade11.tar.gz
liveslak-47c16850bfba8ccbeea871f2b30068e86e3ade11.tar.xz
Slackware changed the filename of the kernel image againHEADmaster
-rwxr-xr-xmake_slackware_live.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index d48d2c3..3a799ba 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1755,10 +1755,12 @@ for SPS in ${SL_SERIES} ; do
cleanup
exit 1
else
- # Do we use old style (vmlinuz-generic-$KGEN) or new style
- # (vmlinuz-$KGEN-generic) kernel image name?
- if [ -f ${INSTDIR}/boot/vmlinuz-${KGEN}-generic ]; then
- KIMGNAME_STYLE="NEW"
+ # Do we use old style (vmlinuz-generic-$KGEN) or one of the new styles
+ # (vmlinuz-$KGEN-generic or vmlinux-$KGEN) kernel image name?
+ if [ -f ${INSTDIR}/boot/vmlinuz-${KGEN} ]; then
+ KIMGNAME_STYLE="NEW2"
+ elif [ -f ${INSTDIR}/boot/vmlinuz-${KGEN}-generic ]; then
+ KIMGNAME_STYLE="NEW1"
else
KIMGNAME_STYLE="OLD"
fi
@@ -3545,10 +3547,12 @@ umount -R ${LIVE_ROOTDIR} || true
# Note to self: syslinux does not 'see' files unless they are DOS 8.3 names?
rm -rf ${LIVE_STAGING}/boot
mkdir -p ${LIVE_STAGING}/boot
-if [ "${KIMGNAME_STYLE}" = "OLD" ]; then
- cp -a ${LIVE_BOOT}/boot/vmlinuz-generic*-${KGEN} ${LIVE_STAGING}/boot/generic
-else
+if [ "${KIMGNAME_STYLE}" = "NEW2" ]; then
+ cp -a ${LIVE_BOOT}/boot/vmlinuz-${KGEN} ${LIVE_STAGING}/boot/generic
+elif [ "${KIMGNAME_STYLE}" = "NEW1" ]; then
cp -a ${LIVE_BOOT}/boot/vmlinuz-${KGEN}-generic ${LIVE_STAGING}/boot/generic
+else
+ cp -a ${LIVE_BOOT}/boot/vmlinuz-generic*-${KGEN} ${LIVE_STAGING}/boot/generic
fi
mv ${LIVE_BOOT}/boot/initrd_${KVER}.img ${LIVE_STAGING}/boot/initrd.img