Ubuntu Pastebin

Paste from caribou at Mon, 6 Mar 2017 17:15:39 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
diff -u tftp-hpa-5.2+20150808/debian/changelog tftp-hpa-5.2+20150808/debian/changelog
--- tftp-hpa-5.2+20150808/debian/changelog
+++ tftp-hpa-5.2+20150808/debian/changelog
@@ -1,3 +1,11 @@
+tftp-hpa (5.2+20150808-1ubuntu2) zesty; urgency=medium
+
+  * Replace the default value of TFTP_ADDRESS to :69 instead of [::]:69.
+    The previous default caused a failure to start when the NIC is not
+    available at startup time (LP: #1342580)
+
+ -- Louis Bouchard <louis.bouchard@ubuntu.com>  Thu, 09 Feb 2017 18:13:54 +0100
+
 tftp-hpa (5.2+20150808-1ubuntu1) xenial; urgency=medium
 
   * Merge from Debian unstable. Remaining changes:
diff -u tftp-hpa-5.2+20150808/debian/tftpd-hpa.config tftp-hpa-5.2+20150808/debian/tftpd-hpa.config
--- tftp-hpa-5.2+20150808/debian/tftpd-hpa.config
+++ tftp-hpa-5.2+20150808/debian/tftpd-hpa.config
@@ -13,7 +13,13 @@
 	# Move from IPv4-only to dual-stack
 	if [ "${TFTP_ADDRESS}" = "0.0.0.0:69" ] && \
         dpkg --compare-versions $2 lt 5.2-7ubuntu3; then
-		TFTP_ADDRESS="[::]:69"
+		TFTP_ADDRESS=":69"
+	fi
+	# Replace previous dual-stack syntax
+	# that fails to work if NIC is not available
+	# (LP: #1342580)
+	if [ "${TFTP_ADDRESS}" = "[::]:69" ]; then 
+		TFTP_ADDRESS=":69"
 	fi
 
 	db_set tftpd-hpa/username "${TFTP_USERNAME}"
diff -u tftp-hpa-5.2+20150808/debian/tftpd-hpa.postinst tftp-hpa-5.2+20150808/debian/tftpd-hpa.postinst
--- tftp-hpa-5.2+20150808/debian/tftpd-hpa.postinst
+++ tftp-hpa-5.2+20150808/debian/tftpd-hpa.postinst
@@ -15,7 +15,7 @@
 		TFTP_DIRECTORY="${RET:-/srv/tftp}"
 
 		db_get tftpd-hpa/address
-		TFTP_ADDRESS="${RET:-[::]:69}"
+		TFTP_ADDRESS="${RET:-:69}"
 
 		db_get tftpd-hpa/options
 		TFTP_OPTIONS="${RET}" # is ok when empty
diff -u tftp-hpa-5.2+20150808/debian/tftpd-hpa.templates tftp-hpa-5.2+20150808/debian/tftpd-hpa.templates
--- tftp-hpa-5.2+20150808/debian/tftpd-hpa.templates
+++ tftp-hpa-5.2+20150808/debian/tftpd-hpa.templates
@@ -17,13 +17,13 @@
 
 Template: tftpd-hpa/address
 Type: string
-Default: [::]:69
+Default: :69
 _Description: TFTP server address and port:
  Please specify an address and port to listen to in the form of
  [address][:port].
  .
  By default, the TFTP server listens to port 69 on all addresses and all
- interfaces ([::]:69). If no port is specified, it defaults to 69.
+ interfaces (:69). If no port is specified, it defaults to 69.
  .
  Please note that numeric IPv6 addresses must be enclosed in square brackets
  to avoid ambiguity with the optional port information.
Download as text