Debian Bug report logs -
#816600
postinst: IPv6 address is not displayed in 'Start SSH' invitation
Reported by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Date: Thu, 3 Mar 2016 11:15:02 UTC
Severity: wishlist
Tags: d-i, patch
Found in version network-console/1.53
Fixed in version network-console/1.54
Done: Dimitri John Ledkov <xnox@ubuntu.com>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, brueckner@linux.vnet.ibm.com, mihajlov@linux.vnet.ibm.com, kate@de.ibm.com, diehl@de.ibm.com, pkern@debian.org, dimitri.ledkov@canonical.com, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#816600; Package network-console.
(Thu, 03 Mar 2016 11:15:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
New Bug report received and forwarded. Copy sent to brueckner@linux.vnet.ibm.com, mihajlov@linux.vnet.ibm.com, kate@de.ibm.com, diehl@de.ibm.com, pkern@debian.org, dimitri.ledkov@canonical.com, Debian Install System Team <debian-boot@lists.debian.org>.
(Thu, 03 Mar 2016 11:15:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
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
[0001-network-console-display-IPv6-address-to-access-insta.patch (text/plain, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#816600; Package network-console.
(Fri, 04 Mar 2016 18:40:54 GMT) (full text, mbox, link).
Acknowledgement sent
to Roger Shimizu <rogershimizu@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Fri, 04 Mar 2016 18:40:54 GMT) (full text, mbox, link).
Message #10 received at 816600@bugs.debian.org (full text, mbox, reply):
On Thu, Mar 3, 2016 at 8:12 PM, Hendrik Brueckner
<brueckner@linux.vnet.ibm.com> wrote:
> 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 for your patch!
It's even better if you can include kfreebsd/hurd support.
I guess you have this kinda test environment, which there's only IPv6
but no IPv4.
So you just need to run the d-i in very early stage and find how to
get IPv6 address, without really install/overwrite your system.
Cheers,
--
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 17B3ACB1
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#816600; Package network-console.
(Thu, 10 Mar 2016 01:33:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Dimitri John Ledkov <dimitri.ledkov@canonical.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Thu, 10 Mar 2016 01:33:03 GMT) (full text, mbox, link).
Message #15 received at 816600@bugs.debian.org (full text, mbox, reply):
On Thu, Mar 3, 2016 at 11:12 AM, Hendrik Brueckner
<brueckner@linux.vnet.ibm.com> wrote:
> 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.
>
To be honest, I don't think it's only about IPv6-only environments.
A person performing the installation may only be on IPv6 link-local,
IPv6 autoconfigure, IPv4, only, whilst the machine to be installed has
dual-stack / all combos.
Unusual, true, but totally possible.
Thus, I think, we should enumerate all IP addresses, sans loopback,
and display them all.
--
Regards,
Dimitri.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#816600; Package network-console.
(Mon, 21 Mar 2016 10:45:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Mon, 21 Mar 2016 10:45:06 GMT) (full text, mbox, link).
Message #20 received at 816600@bugs.debian.org (full text, mbox, reply):
Control: severity -1 wishlist
On Thu, Mar 10, 2016 at 01:30:44AM +0000, Dimitri John Ledkov wrote:
> On Thu, Mar 3, 2016 at 11:12 AM, Hendrik Brueckner
> <brueckner@linux.vnet.ibm.com> wrote:
> > 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.
> >
>
> To be honest, I don't think it's only about IPv6-only environments.
> A person performing the installation may only be on IPv6 link-local,
> IPv6 autoconfigure, IPv4, only, whilst the machine to be installed has
> dual-stack / all combos.
> Unusual, true, but totally possible.
>
> Thus, I think, we should enumerate all IP addresses, sans loopback,
> and display them all.
It would make sense to display all possible IP addresses to connect to
the installer environment. This change is not that simple because it
requires debconf template modifications to provide an enumerated list
of IP addresses. Hence reducing the severity of this bug to address
this requirement in future.
Thanks and kind regards,
Hendrik
Severity set to 'wishlist' from 'normal'
Request was from Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
to 816600-submit@bugs.debian.org.
(Mon, 21 Mar 2016 10:45:06 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#816600; Package network-console.
(Thu, 31 Mar 2016 23:51:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Dimitri John Ledkov <xnox@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Thu, 31 Mar 2016 23:51:04 GMT) (full text, mbox, link).
Message #27 received at 816600@bugs.debian.org (full text, mbox, reply):
---
debian/changelog | 10 ++++++++++
debian/network-console.postinst | 15 +++++++++------
debian/network-console.templates | 2 +-
3 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index a518cd1..0521276 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+network-console (1.54) UNRELEASED; 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
+
+ -- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 01 Apr 2016 00:42:39 +0100
+
network-console (1.53) unstable; urgency=medium
[ Colin Watson ]
diff --git a/debian/network-console.postinst b/debian/network-console.postinst
index f164446..090cb26 100755
--- a/debian/network-console.postinst
+++ b/debian/network-console.postinst
@@ -85,22 +85,25 @@ apt-install openssh-server || true
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/')
+ IPADDRS=$(ip addr | grep '^[[:space:]]*inet6\? ' | grep -v -e "127\.0\." -e "::1" | \
+ sed 's/.*inet6\? \([a-f0-9.:]*\).*/\1/')
;;
kfreebsd)
- IPADDR=$(ifconfig| grep '^[[:space:]]*inet ' | grep -v "127\.0\." | \
- head -n 1 | sed 's/.*inet \([0-9.]*\).*/\1/')
+ IPADDRS=$(ifconfig| grep '^[[:space:]]*inet6\? ' | grep -v -e "127\.0\." -e "::1" | \
+ sed 's/.*inet6\? \([a-f0-9.:]*\).*/\1/')
;;
hurd)
- IPADDR=$(fsysopts /servers/socket/2 | sed 's/.*--address=\([^ ]*\).*/\1/')
+ IPADDRS=$(fsysopts /servers/socket/2 | sed 's/ /\n/g' | sed -n 's/--address6\?=\([a-f0-9.:]*\).*/\1/p')
;;
*)
- IPADDR="TODO"
+ IPADDRS="TODO"
;;
esac
+IPADDR=$(IFS=" " ; set -- $IPADDRS ; echo $1)
+
db_subst $TEMPLATE_ROOT/start ip $IPADDR
+db_subst $TEMPLATE_ROOT/start ips $IPADDRS
db_subst $TEMPLATE_ROOT/start fingerprint $KEY_FINGERPRINT
case "$ARCHDETECT" in
arm*/ixp4xx)
diff --git a/debian/network-console.templates b/debian/network-console.templates
index 1c542ea..e55a653 100644
--- a/debian/network-console.templates
+++ b/debian/network-console.templates
@@ -66,7 +66,7 @@ Type: note
#flag:translate!:3
_Description: Start SSH
To continue the installation, please use an SSH client to connect to the
- IP address ${ip} and log in as the "installer" user. For example:
+ IP address ${ips} and log in as the "installer" user. For example:
.
ssh installer@${ip}
.
--
2.7.4
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#816600; Package network-console.
(Fri, 01 Apr 2016 07:36:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Fri, 01 Apr 2016 07:36:06 GMT) (full text, mbox, link).
Message #32 received at 816600@bugs.debian.org (full text, mbox, reply):
Hi Dimitri,
On Fri, Apr 01, 2016 at 12:47:00AM +0100, Dimitri John Ledkov wrote:
> ---
> debian/changelog | 10 ++++++++++
> debian/network-console.postinst | 15 +++++++++------
> debian/network-console.templates | 2 +-
> 3 files changed, 20 insertions(+), 7 deletions(-)
>
> diff --git a/debian/changelog b/debian/changelog
> index a518cd1..0521276 100644
> --- a/debian/changelog
> +++ b/debian/changelog
> @@ -1,3 +1,13 @@
> +network-console (1.54) UNRELEASED; 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
> +
> + -- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 01 Apr 2016 00:42:39 +0100
> +
> network-console (1.53) unstable; urgency=medium
>
> [ Colin Watson ]
> diff --git a/debian/network-console.postinst b/debian/network-console.postinst
> index f164446..090cb26 100755
> --- a/debian/network-console.postinst
> +++ b/debian/network-console.postinst
> @@ -85,22 +85,25 @@ apt-install openssh-server || true
>
> 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/')
> + IPADDRS=$(ip addr | grep '^[[:space:]]*inet6\? ' | grep -v -e "127\.0\." -e "::1" | \
> + sed 's/.*inet6\? \([a-f0-9.:]*\).*/\1/')
> ;;
> kfreebsd)
> - IPADDR=$(ifconfig| grep '^[[:space:]]*inet ' | grep -v "127\.0\." | \
> - head -n 1 | sed 's/.*inet \([0-9.]*\).*/\1/')
> + IPADDRS=$(ifconfig| grep '^[[:space:]]*inet6\? ' | grep -v -e "127\.0\." -e "::1" | \
> + sed 's/.*inet6\? \([a-f0-9.:]*\).*/\1/')
> ;;
> hurd)
> - IPADDR=$(fsysopts /servers/socket/2 | sed 's/.*--address=\([^ ]*\).*/\1/')
> + IPADDRS=$(fsysopts /servers/socket/2 | sed 's/ /\n/g' | sed -n 's/--address6\?=\([a-f0-9.:]*\).*/\1/p')
> ;;
> *)
> - IPADDR="TODO"
> + IPADDRS="TODO"
> ;;
> esac
>
> +IPADDR=$(IFS=" " ; set -- $IPADDRS ; echo $1)
> +
> db_subst $TEMPLATE_ROOT/start ip $IPADDR
> +db_subst $TEMPLATE_ROOT/start ips $IPADDRS
> db_subst $TEMPLATE_ROOT/start fingerprint $KEY_FINGERPRINT
> case "$ARCHDETECT" in
> arm*/ixp4xx)
> diff --git a/debian/network-console.templates b/debian/network-console.templates
> index 1c542ea..e55a653 100644
> --- a/debian/network-console.templates
> +++ b/debian/network-console.templates
> @@ -66,7 +66,7 @@ Type: note
> #flag:translate!:3
> _Description: Start SSH
> To continue the installation, please use an SSH client to connect to the
> - IP address ${ip} and log in as the "installer" user. For example:
> + IP address ${ips} and log in as the "installer" user. For example:
> .
> ssh installer@${ip}
> .
> --
Looks great. Many thanks!
Kind regards,
Hendrik
Reply sent
to Dimitri John Ledkov <xnox@ubuntu.com>:
You have taken responsibility.
(Fri, 01 Apr 2016 11:24:04 GMT) (full text, mbox, link).
Notification sent
to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
Bug acknowledged by developer.
(Fri, 01 Apr 2016 11:24:04 GMT) (full text, mbox, link).
Message #37 received at 816600-close@bugs.debian.org (full text, mbox, reply):
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-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 05 May 2016 07:25:03 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Aug 8 03:03:38 2024;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.