[debian-edu-commits] debian-edu/ 01/01: Extend testsuite/pxeinstall to test TFTP download of pxelinux.0 to check if the server is working and the required file is available.
Petter Reinholdtsen
pere at moszumanska.debian.org
Tue Sep 9 16:41:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
pere pushed a commit to branch master
in repository debian-edu-config.
commit 2028aa17e09e6203c0d70fa2c2744ac26d04a79a
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Tue Sep 9 18:41:22 2014 +0200
Extend testsuite/pxeinstall to test TFTP download of pxelinux.0 to check if the server is working and the required file is available.
---
debian/changelog | 2 ++
testsuite/pxeinstall | 11 +++++++++++
2 files changed, 13 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index e736043..da9d1db 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ debian-edu-config (1.726) UNRELEASED; urgency=low
* Correct PXE setup generated by debian-edu-pxeinstall, symlink from
/var/lib/tftpdir/syslinux/ to /usr/lib/syslinux/modules/bios/ to
find required pxelinux modules.
+ * Extend testsuite/pxeinstall to test TFTP download of pxelinux.0 to
+ check if the server is working and the required file is available.
-- Petter Reinholdtsen <pere at debian.org> Tue, 09 Sep 2014 16:00:27 +0200
diff --git a/testsuite/pxeinstall b/testsuite/pxeinstall
index aaf7794..3aeba6e 100755
--- a/testsuite/pxeinstall
+++ b/testsuite/pxeinstall
@@ -25,3 +25,14 @@ if egrep -q '^tftp.*/var/lib/tftpboot' /etc/inetd.conf ; then
else
echo "error: $0: tftp entry in /etc/inetd.conf do not use /var/lib/tftpboot"
fi
+
+# verify that tftp server is handing out pxelinux.0
+tmpfile=$(tempfile)
+if echo get /pxelinux.0 "$tmpfile" | tftp $(hostname) | grep -qi error || \
+ [ ! -s "$tmpfile" ] ; then
+ echo "error: $0: tftp server do not provide pxelinux.0!"
+else
+ echo "success: $0: tftp server provide pxelinux.0."
+fi
+ls -l "$tmpfile"
+rm "$tmpfile"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list