Skip to content

LXTerminal command prompts lack color #56

Answered by gitbls
dshaw619 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is correct. During a customize, adding a user is done with useradd --no-create-home because I (or maybe you) may want to copy files into your login directory from the running system during a custom phase script or plugin Phase 0.

If the home directory exists useradd --create-home will not copy the /etc/skel files into it. SO, in the Phase0/Phase1 case (e.g., --user bls), the /etc/skel files don't get copied, and the result is that your prompts aren't colored. I've updated sdm (not checked in yet) to explicitly copy the /etc/skel files (.profile, .bashrc, .bash_logout) that don't exist in the login directory.

However, in the case of --burn --user des, sdm IS able to use useradd -…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dshaw619
Comment options

Comment options

You must be logged in to vote
3 replies
@dshaw619
Comment options

@dshaw619
Comment options

@gitbls
Comment options

Answer selected by dshaw619
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants