summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes/10-configurations.inc
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-18 14:25:46 +0200
committerSimon Rettberg2019-04-18 14:25:46 +0200
commit9af64b27983915c7bede9d3c444e1fe3f72098c4 (patch)
treec8e52e8a99d9982c3af9ee7572bff89a86ce0389 /satellit_installer/includes/10-configurations.inc
parent[SSUS] Improve iPXE message (diff)
downloadsetup-scripts-9af64b27983915c7bede9d3c444e1fe3f72098c4.tar.gz
setup-scripts-9af64b27983915c7bede9d3c444e1fe3f72098c4.tar.xz
setup-scripts-9af64b27983915c7bede9d3c444e1fe3f72098c4.zip
[SSPS/SSUS] Install remap file for tftpdv3.8
This works around buggy PXE clients that pad the filename with a lot of FF bytes.
Diffstat (limited to 'satellit_installer/includes/10-configurations.inc')
-rw-r--r--satellit_installer/includes/10-configurations.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/satellit_installer/includes/10-configurations.inc b/satellit_installer/includes/10-configurations.inc
index ea2d9fa..b6fe243 100644
--- a/satellit_installer/includes/10-configurations.inc
+++ b/satellit_installer/includes/10-configurations.inc
@@ -1,10 +1,12 @@
patch_tftpd-hpa_config() {
- echo -n "# Stopping tftpd-hpa server in case it's not managed by inetd... "
- [ "$SYSTEMD" ] && systemctl stop tftpd-hpa || /etc/init.d/tftpd-hpa stop 2>/dev/null 1>&2
- echo "ok."
+ echo "# Stopping tftpd-hpa server in case it's not managed by inetd... "
+ systemctl stop tftpd-hpa || perror "Failed"
# No sense in patching, we will drop this little entry.
- echo "# Patching tftpd-hpa configuration... "
+ echo "# Copying tftpd-hpa configuration... "
cp -p "$BASEDIR/static_files/tftpd/tftpd-hpa" "/etc/default/tftpd-hpa" || perror "failed"
+ echo "# Copying remap file... "
+ mkdir -p "/opt/openslx"
+ cp -p "$BASEDIR/static_files/tftpd/tftpd-remap" "/opt/openslx/tftpd-remap" || perror "failed"
# sometimes a tftp stating line remains in /etc/inetd.conf. Let's have a look and kill this interesting line:
echo -n "# Checking /etc/inetd.conf for a tftp entry... "
if [ -f /etc/inetd.conf ]; then