[debian-edu-commits] r78991 - in trunk/src/debian-edu-config: . debian share/ltsp/ltsp_config.d
schweer-guest at alioth.debian.org
schweer-guest at alioth.debian.org
Wed Feb 6 09:37:06 UTC 2013
Author: schweer-guest
Date: 2013-02-06 09:37:05 +0000 (Wed, 06 Feb 2013)
New Revision: 78991
Added:
trunk/src/debian-edu-config/share/ltsp/ltsp_config.d/debian-edu-fix-etc-hosts
Modified:
trunk/src/debian-edu-config/Makefile
trunk/src/debian-edu-config/debian/changelog
Log:
Fix /etc/hosts for LTSP diskless workstations (Closes: #699880)
Modified: trunk/src/debian-edu-config/Makefile
===================================================================
--- trunk/src/debian-edu-config/Makefile 2013-02-06 06:14:12 UTC (rev 78990)
+++ trunk/src/debian-edu-config/Makefile 2013-02-06 09:37:05 UTC (rev 78991)
@@ -383,6 +383,7 @@
share/initramfs-tools/scripts/nfs-bottom/before-ltsp \
share/ltsp/ltsp_config.d/debian-edu-config-ldap \
share/ltsp/ltsp_config.d/debian-edu-config-rwbind \
+ share/ltsp/ltsp_config.d/debian-edu-fix-etc-hosts \
; do \
$(INSTALL) $$f $(DESTDIR)/usr/$$f ; \
done
Modified: trunk/src/debian-edu-config/debian/changelog
===================================================================
--- trunk/src/debian-edu-config/debian/changelog 2013-02-06 06:14:12 UTC (rev 78990)
+++ trunk/src/debian-edu-config/debian/changelog 2013-02-06 09:37:05 UTC (rev 78991)
@@ -1,3 +1,9 @@
+debian-edu-config (1.455~svn78523+nmu1) UNRELEASED; urgency=low
+
+ * Fix /etc/hosts for LTSP diskless workstations (Closes: #699880)
+
+ -- Wolfgang Schweer <wschweer at arcor.de> Wed, 06 Feb 2013 10:34:34 +0100
+
debian-edu-config (1.455~svn78523) unstable; urgency=low
[ Petter Reinholdtsen ]
Added: trunk/src/debian-edu-config/share/ltsp/ltsp_config.d/debian-edu-fix-etc-hosts
===================================================================
--- trunk/src/debian-edu-config/share/ltsp/ltsp_config.d/debian-edu-fix-etc-hosts (rev 0)
+++ trunk/src/debian-edu-config/share/ltsp/ltsp_config.d/debian-edu-fix-etc-hosts 2013-02-06 09:37:05 UTC (rev 78991)
@@ -0,0 +1,17 @@
+# Store this file as /opt/ltsp/$arch/usr/share/ltsp/ltsp_config.d/debian-edu-fix-etc-hosts
+
+# This code works around a Kerberos problem for diskless workstations using
+# tjener as LTSP server. A Kerberos tgt would otherwise request service
+# tickets from "server", not "tjener.intern" -- other problems may occur, too.
+# This fix deletes the line that is wrong for runlevel 3 (diskless workstation).
+
+# Wait until /etc/hosts is writeable.
+if [ -w /etc/hosts ] ; then
+ echo "Start fixing /etc/hosts. $0"
+ if [ "$(runlevel | cut -d" " -f2)" = "3" ] ; then
+ sed /server/d /etc/hosts > /tmp/hosts
+ cp /tmp/hosts /etc
+ rm /tmp/hosts
+ fi
+ echo "Fixing /etc/hosts done. $0"
+fi
Property changes on: trunk/src/debian-edu-config/share/ltsp/ltsp_config.d/debian-edu-fix-etc-hosts
___________________________________________________________________
Added: svn:executable
+ *
More information about the debian-edu-commits
mailing list