diff options
author | Eric Hameleers <alien@slackware.com> | 2016-02-24 13:40:26 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-02-24 13:40:26 +0100 |
commit | 47dacac490705bbdc759aa6627d1f3cf1da15a8b (patch) | |
tree | 6a80f56e66541e34add4376235a03da45dabef6b | |
parent | 59f5250e8bfb4675d659a0f604cdc5eb76e80271 (diff) | |
download | liveslak-47dacac490705bbdc759aa6627d1f3cf1da15a8b.tar.gz liveslak-47dacac490705bbdc759aa6627d1f3cf1da15a8b.tar.xz |
Define KVER and KGEN at the proper location in the script.
Diffstat (limited to '')
-rwxr-xr-x | make_slackware_live.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 9d94e76..3d60085 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -813,6 +813,10 @@ echo "-- Configuring the base system." umount ${LIVE_ROOTDIR} 2>${DBGOUT} || true mount -t overlay -o lowerdir=${RODIRS},upperdir=${INSTDIR},workdir=${LIVE_OVLDIR} overlay ${LIVE_ROOTDIR} +# Determine the kernel version in the Live OS: +KGEN=$(echo ${LIVE_ROOTDIR}/var/log/packages/kernel*modules* |head -1 |rev | cut -d- -f3 |rev) +KVER=$(ls --indicator-style=none ${LIVE_ROOTDIR}/lib/modules/ |head -1) + # Configure hostname and network: echo "${LIVE_HOSTNAME}.example.net" > ${LIVE_ROOTDIR}/etc/HOSTNAME if [ -f ${LIVE_ROOTDIR}/etc/NetworkManager/NetworkManager.conf ]; then |