[Bug 1954719] Re: Ubuntu Server 20.04.3 autoinstall - User not available until reboot

Launchpad Bug Tracker 1954719 at bugs.launchpad.net
Mon Jul 25 15:46:27 UTC 2022


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: subiquity (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1954719

Title:
  Ubuntu Server 20.04.3 autoinstall - User not available until reboot

Status in subiquity:
  New
Status in subiquity package in Ubuntu:
  Confirmed

Bug description:
  As per documentation:
   - late-commands
   -- Shell commands to run after the install has completed successfully and any updates and packages installed, just before the system reboots.

  Doesn’t seem to be the case. At least during late-commands I would
  expect the system to be finished as per description, but i.e. the
  defined user in identity isn’t even in `/target/etc/passwd` nor in
  `/etc/passwd`. Caused my late-command script to fail.

  The specified user(s) in the `identity` or `user-data` section is/are
  not applied until the final reboot happens. Therefore, late-command is
  not being run in a complete state of the install!

  How to check? Watch both passwd or group until the installer finishes.
  Nothing happens there. On reboot everything is suddenly there.

  This prevents my late-command scripts to fail, `in-target
  target=/target`, i.e. `su: user USER does not exist`.

  Manually adding users in late-command using `useradd` causes this user
  to be id 1000 and every other following counted up. Furthermore those
  users added by the installer are not being able to login then because
  their home directory belongs to `root:root`.

To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/1954719/+subscriptions




More information about the foundations-bugs mailing list