.bashrc not copied from /etc/skel when remastered Live CD is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Customization Kit |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
* Version of Ubuntu you are running on (output of lsb_release -irs)
Ubuntu
13.10
* Kernel architecture of host system (output of uname -rm)
* Version of Ubuntu you are trying to customize
Ubuntu 13.10
* Kernel architecture of the version you are trying to customize
x64
* Iso used
* UCK version
STEPS:
I run UCK from the host machine, under user account "someuser". Since "someuser" is a member of the sudoer's group, I enter the root password when prompted.
In the UCK croot environment, I notice that the current user's home directory (~) is "/home/someuser".
In the chroot environment (using the ubuntu-
- I place files into /etc/skel
- I modify /etc/skel/.bashrc
After successfully creating the remastered iso USB, I proceed to install the customized OS.
In the Ubuntu installation wizzard (Ubiquity), I create a user called "someuser" (same as the user account I used to run UCK and remaster Ubuntu).
The install is successful.
CURRENT STATE ISSUE:
After installing from the remastered iso, I log in to Ubuntu using user "someuser".
I notice that /home/someuser does not have the files I had placed in /etc/skel during customization.
I also notice that .bashrc and .profile are missing from /home/someuser.
However /etc/skel on the newly installed system *does* indeed contain these files, including the modified .bashrc.
If I create a new user (using $ adduser testuser) the new user has the correct files under /home/testuser.
POSSIBLE CAUSE:
The Linux "adduser" command is used by Ubuntu's installer, Ubiquity.
(See ubiquity_
The behavior of the adduser command is to *not* copy files from /etc/skel, if the user's home directory *already* exists.
In this case, I suspect that UCK creates the "/home/someuser" directory on the remastered iso, so this directory already exists when Ubiquity is run.
DESIRED BEHAVIOR:
When I create the user someuser during the Ubiquity wizard, the fiels in /home/someuser/ should be copied from /etc/skel/.
Therefore, after the remastering process is complete, the directory /home/someuser should NOT exist on the cusomized iso. This would prevent this "issue" with Ubiquity and the adduser command.
POSSIBLY RELATED SAME/ISSUE (?):
I also noticed that /root does not have .bashrc and .profile In the UCK chroot environment. This could be because the official Ubuntu Live CD, ubuntu-
description: | updated |
description: | updated |
Changed in uck: | |
status: | Fix Released → Confirmed |
Tested Ubuntu Customization Kit 2.4.7 on Ubuntu 14.04 x64.
This issue is no longer present.