[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#816600: marked as done (postinst: IPv6 address is not displayed in 'Start SSH' invitation)



Your message dated Fri, 01 Apr 2016 11:20:41 +0000
with message-id <E1alx85-0007EH-VH@franck.debian.org>
and subject line Bug#816600: fixed in network-console 1.54
has caused the Debian Bug report #816600,
regarding postinst: IPv6 address is not displayed in 'Start SSH' invitation
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
816600: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816600
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: network-console
Version: 1.53
Severity: normal
Tags: d-i patch

Dear Maintainer,

in IPv6-only environments, the "Start SSH" invitation does not include
the IPv6 address to log in to the installer system.  Below is a patch
that extends the postinst script to detect an IPv6 address if no IPv4
address could be found.

Thanks and kind regards,
  Hendrik
>From 46f274510e68bc3ce843a14b2c229ab30706d68d Mon Sep 17 00:00:00 2001
From: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Date: Thu, 3 Mar 2016 10:51:01 +0100
Subject: [PATCH] network-console: display IPv6 address to access installer system

The IP address in the ssh command to log into the installer system
is not display in IPv6-only environments.  Enhance the post install
to detect and display IPv6 addresses if no IPv4 address could be
found.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
---
 debian/network-console.postinst |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/debian/network-console.postinst b/debian/network-console.postinst
index f164446..512f121 100755
--- a/debian/network-console.postinst
+++ b/debian/network-console.postinst
@@ -87,6 +87,13 @@ case "$(udpkg --print-os)" in
 	linux)
 		IPADDR=$(ip addr | grep '^[[:space:]]*inet ' | grep -v "127\.0\." | \
 			 head -n 1 | sed 's/.*inet \([0-9.]*\).*/\1/')
+
+		if test -z "$IPADDR"; then
+			# Check for an IPv6 address if an IPv4 address
+			# could not be found
+			IPADDR=$(ip addr |grep '^[[:space:]]*inet6 ' | grep -v "::1" | \
+				 head -n 1 | sed 's/.*inet6 \([a-fA-F0-9:]*\).*/\1/')
+		fi
 		;;
 	kfreebsd)
 		IPADDR=$(ifconfig| grep '^[[:space:]]*inet ' | grep -v "127\.0\." | \
-- 
1.7.1


--- End Message ---
--- Begin Message ---
Source: network-console
Source-Version: 1.54

We believe that the bug you reported is fixed in the latest version of
network-console, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 816600@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dimitri John Ledkov <xnox@ubuntu.com> (supplier of updated network-console package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 01 Apr 2016 11:52:11 +0100
Source: network-console
Binary: network-console
Architecture: source
Version: 1.54
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Dimitri John Ledkov <xnox@ubuntu.com>
Description:
 network-console - Continue installation remotely using SSH (udeb)
Closes: 816600
Launchpad-Bugs-Fixed: 1552368
Changes:
 network-console (1.54) unstable; urgency=medium
 .
   [ Dimitri John Ledkov ]
   * Adjust regexpes to include all ipv4 and ipv6 addresses, list all ip
     addresses (sans loopback) in the template instructions, and use only
     the first ip address in the example command. Closes: #816600 LP:
     #1552368
   * Adjust variable name in template translations.
Checksums-Sha1:
 2642ada43632842980aa73e85d8213c1b4ae1cf4 1302 network-console_1.54.dsc
 338ec7f6ff91ad9e3f1bf754d537f3f4bbc03107 96788 network-console_1.54.tar.xz
Checksums-Sha256:
 75059094e6cf8f77ff8e3d690d360589530a5a587ba5fd84ec4b2a211a4d7e21 1302 network-console_1.54.dsc
 e1649704b3ecac6ee42ab8d3221253c527c76cfe4d0229fa06a19d8263deda8e 96788 network-console_1.54.tar.xz
Files:
 3226be8915777d0a59912872ec4f00e7 1302 debian-installer optional network-console_1.54.dsc
 7bff39fa2fb402d24c2250f2c86e2c8e 96788 debian-installer optional network-console_1.54.tar.xz

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJW/lL2AAoJEMrC2LnNLKX54McIALX0x+bPc8pePqXcQqum1KQN
L0wPbmuL0564oJqDZUQD5msWsYOmimS1bTOaBsHszkJ4nZjpj34JzQGvfBmHLGbh
fRLWa3g70EFM81zQClOh4eyR7leL9hVAlV80yK/nWlfYoEzIkNCpccadw5ZTKcEg
RhFq7AahJnzya3oiRBnlfqG6XJYTAs27zbSPiLBY/9lewFVUQRHuORe7+V5lGm2A
Xvn7OogFh/tmnKl/5UTaUPJKy+LHuwgrYhP+jJ2gRTAM8ujjaBNs4B6XaPSADiDA
MnN+GD9VrVjdYYqm81mxywRY2VpLlhzGLCp8mwJhR7rG3ZKuOFn6lmY7slcLDcA=
=CyPU
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: