[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] Generate netbios compliant hostname (workaround for Samba bug #900908).

WolfgangSchweer gitlab at salsa.debian.org
Sun Jun 17 12:09:47 BST 2018


WolfgangSchweer pushed to branch master at Debian Edu / debian-edu-config


Commits:
f5292cfb by Wolfgang Schweer at 2018-06-17T13:03:59+02:00
Generate netbios compliant hostname (workaround for Samba bug #900908).

The MATE desktop pulls in 'samba-common-bin' via 'caja-share' causing
installations (except main-server) with 'desktop=mate' to break. Instead
of e.g. 'auto-mac-11-22-33-44-55-66', now 'am-112233445566' is generated.
(Closes: #900629).

- - - - -


2 changed files:

- debian/changelog
- sbin/update-hostname-from-ip


Changes:

=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+debian-edu-config (2.10.29) UNRELEASED; urgency=medium
+
+  * Generate netbios compliant hostname (workaround for Samba bug #900908).
+    The MATE desktop pulls in 'samba-common-bin' via 'caja-share' causing
+    installations (except main-server) with 'desktop=mate' to break. Instead
+    of e.g. 'auto-mac-11-22-33-44-55-66', now 'am-112233445566' is generated.
+    (Closes: #900629).
+
+ -- Wolfgang Schweer <wschweer at arcor.de>  Sun, 17 Jun 2018 12:42:08 +0200
+
 debian-edu-config (2.10.28) unstable; urgency=medium
 
   [ Wolfgang Schweer ]


=====================================
sbin/update-hostname-from-ip
=====================================
--- a/sbin/update-hostname-from-ip
+++ b/sbin/update-hostname-from-ip
@@ -26,9 +26,11 @@ ether2hostname() {
     else
 	mac=$(ifconfig $INTERFACE | awk '/ether/ { print $2; exit}')
     fi
-    mac=$(echo $mac | sed 's/[^0-9a-f-]/-/gi')
+    # FIXME: generate netbios compliant hostname; workaround Samba bug #900908.
+    # Needed because MATE desktop pulls in 'samba-common-bin' via 'caja-share'.
+    mac=$(echo $mac | sed 's/[^0-9a-f-]//gi')
     if [ "$mac" ] ; then
-       fqdn="auto-mac-$mac.$DNSDOMAIN";
+       fqdn="am-$mac.$DNSDOMAIN";
        echo $fqdn
     fi
 }



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/f5292cfb73283c2e6b0d2a7a5f757a190b1046f2

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/f5292cfb73283c2e6b0d2a7a5f757a190b1046f2
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20180617/3aadcc35/attachment-0001.html>


More information about the debian-edu-commits mailing list