** Description changed: - Not sure when this started, but I noticed it when setting up new - machines with Noble Numbat. I pre-install them with everything needed, - *including a properly set hostname*, except a user account and then rely - on gnome-inital-setup to allow the user to set up a local account. + [ Impact ] - However, gnome-initial-setup now insists that the hostname should be - changed. It isn't even possible to enter the existing one since it is - "not unique" on the network. That's silly. The box should know that it - can continue using the hostname it already has. + The first-boot wizard allows changing the hostname, but blocks progress until a valid hostname is entered. + As part of checking whether the hostname is valid, it also performs a network scan of other visible names in the local network and disallows configuring a hostname that already exists in the local network. + Unfortunately, this network check accidentally also includes the current machine, making it impossible to keep the hostname that was pre-configured earlier at install time. - But, really, there should be a way (perhaps via the vendor.conf file) to - remove that text-field altogether and not allow the user to change the - hostname (which needs to match the asset tag in our case). + This setup wizard only shows on first-boot if a user is not configured + on the system, so the problem normally only manifests when you configure + a hostname but no user at install time. + + [ Test Plan ] + + We'll test on a pre-configured system for simplicity, forcing the first- + boot wizard to appear. + + 1. Reboot to GRUB + 2. Append "gnome.initial-setup=1" to the kernel cmdline + 3. Boot + 4. Verify that you've reached the first-boot wizard + 5. Navigate through the wizard up to the account configuration page + 6. Configure the account full-name and username + -> the hostname entry will pre-fill to match the username + 7. Configure the hostname to match what was already configured + 8. Verify that the button to proceed to the next page is clickable + -> but stay in this page + 9. Empty the hostname entry + 10. Verify again that the button to proceed to the next page is clickable + 11. Complete the wizard + 12. Verify that the hostname is indeed unchanged: + $ hostname + + [ Where problems could occur ] + + Problems would manifest in the account page of the first-boot wizard in + Ubuntu Desktop. + + This wizard is normally only reachable when you did not configure any + user at install time. + + We're **not** going to verify that the network discovery logic keeps + working because that's affected by another bug that prevents it from + working properly, so regression testing would find it equally broken.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2093132 Title: Cannot configure user without changing the hostname To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-initial-setup/+bug/2093132/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
