Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

OS-8525 Installer should explicitly print network address(es) #1093

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/smartdc/lib/smartos_prompt_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,15 @@ if [ $boot_from_zpool == "yes" ]; then
fi

if [[ $(getanswer "skip_final_confirm") != "true" ]]; then
printf "System setup has completed.\n\nPress enter to reboot.\n"
if [[ $admin_ip == "dhcp" ]]; then
# use "/_a" suffix since we use ifconfig(8) to bring it up.
ssh_ip = $(ipadm show-addr -p -o addr "$admin_iface"/_a | \
awk -F/ '{print $1}')
else
ssh_ip = "$admin_ip"
fi
printf "\nSSH to host %s or %s.local\n" "$ssh_ip" "$hostname"
printf "\nSystem setup has completed.\n\nPress enter to reboot.\n"
read foo
fi
reboot