When I try to change the user name and change the hostname, the script fails to ask for the new user name, and as a result, the usermod command fails. The system still installs and boots, but it retains the old user name. If I choose to change the user name and don't try to change the host name, it works as it should.
One more piece of information - I'm also creating a separate /home. I don't know if that's related to the problem, because I haven't yet tried it with a single partition. It's not that I'm lazy - I've done about 20 installs today, trying to identify the problem.
Here's the script that I'm using - https://gist.github.com/4243294
The code for changing the hostname starts at line 951
The code for changing the user name starts at line 1113
And the following have been added to the excludes list
- Code: Select all
- /lib/live/overlay
- /lib/live/image
- /lib/live/rootfs
- /lib/live/mount
- /run/*
And one more thing, completely unrelated to this problem, but you might notice it - for every yad window, there's a GTK error message. Those error messages go away if you install gtk2-engines-pixbuf.