summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-05-05 16:15:23 +0200
committer Eric Hameleers <alien@slackware.com>2016-05-05 16:15:23 +0200
commitfc34d033231d123efa51cfa939ef9043a495e8df (patch)
tree521e1a5eddda62d900b3d85ec2d59f7c7a4420e8 /make_slackware_live.sh
parent7da5bc8925210c9c2056577b3db36719948e8e06 (diff)
downloadliveslak-fc34d033231d123efa51cfa939ef9043a495e8df.tar.gz
liveslak-fc34d033231d123efa51cfa939ef9043a495e8df.tar.xz
Add PXE server infrastructure.
See the README.txt for instructions on how to use the 'pxeserver' script and what it can do for you.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 381f116..1713ad2 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1133,6 +1133,25 @@ fi
mkdir -p ${LIVE_ROOTDIR}/usr/local/sbin
install -m0755 ${LIVE_TOOLDIR}/makemod ${LIVE_TOOLDIR}/iso2usb.sh ${LIVE_ROOTDIR}/usr/local/sbin/
+# Add PXE Server infrastructure:
+mkdir -p ${LIVE_ROOTDIR}/var/lib/tftpboot/pxelinux.cfg
+cp -ia /usr/share/syslinux/pxelinux.0 ${LIVE_ROOTDIR}/var/lib/tftpboot/
+ln -s /mnt/livemedia/boot/generic ${LIVE_ROOTDIR}/var/lib/tftpboot/
+ln -s /mnt/livemedia/boot/initrd.img ${LIVE_ROOTDIR}/var/lib/tftpboot/
+cat ${LIVE_TOOLDIR}/pxeserver | sed \
+ -e "s/@DIRSUFFIX@/$DIRSUFFIX/g" \
+ -e "s/@DISTRO@/$DISTRO/g" \
+ -e "s/@CDISTRO@/${DISTRO^}/g" \
+ -e "s/@UDISTRO@/${DISTRO^^}/g" \
+ -e "s/@KVER@/$KVER/g" \
+ -e "s/@LIVEDE@/$LIVEDE/g" \
+ -e "s/@LIVEMAIN@/$LIVEMAIN/g" \
+ -e "s/@MARKER@/$MARKER/g" \
+ -e "s/@SL_VERSION@/$SL_VERSION/g" \
+ -e "s/@VERSION@/$VERSION/g" \
+ > ${LIVE_ROOTDIR}/usr/local/sbin/pxeserver
+chmod 755 ${LIVE_ROOTDIR}/usr/local/sbin/pxeserver
+
# Only when we find a huge kernel, we will add a harddisk installer
# to the ISO. The huge kernel does not require an initrd and installation
# to the hard drive will not be complicated.