late-commands runs before user creation
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:/
> 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.