Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initContainer: Restructure user initialiation
When a newly created container has already the current user created inside of it then the user initialization section of command 'init-container' is not triggered. The user init section currently takes care of: 1) symlinking /home to /var/home if called with option --home-link 2a) creating user set by --user, --uid, --home and --shell 2b) adds the user to the sudoers group (either sudo or wheel) 3) removes password of user and of root This commit does the following: - moves 1) before the user init section and makes calling it conditional depending on /home being a symlink or not - moves 3) after the user init section and depending on the output of 'passwd --status' (that is expected to be NP; more in 'man passwd(1)') calls the said sections containers#533
- Loading branch information