late-commands runs before user creation

Bug #2027901 reported by Andreas Lindhé
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
New
Undecided
Unassigned

Bug Description

It seems to me like the `late-commands` section is run before user creation.

In the [docs](https://ubuntu.com/server/docs/install/autoinstall-reference#late-commands) it says:

> Shell commands to run after the install has completed successfully and any updates and packages installed, just before the system reboots.

This indicates to me that any users I've specified should have been created by the time late-commands are run. But whenever I try to run commands relating to modifying user data (e.g. groups, files in the user's home directory, etc.), they fail or have no effect.

I added the `false` command to my `late-commands` configuration in order to make it crash so I could enter the shell and inspect the current state. My user is called `ubuntu`, and I cannot find a single trace of it existing (see attached screenshot). No entry in /target/etc/passwd, no entry in /target/etc/group, `id` cannot find it and there's nothing in /target/home/.

So either the documentation is misleading or there is something wrong with how Subiquity handles late-commands.

Revision history for this message
Andreas Lindhé (lindhe) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.