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 <brueck...@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 <brueck...@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