Skip to content
Snippets Groups Projects
Commit a7e7e101 authored by Sjoerd Simons's avatar Sjoerd Simons
Browse files

Don't create user homedir in the image build


Depending on how Apertis images are deployed (e.g. ostree, lxc or
debian) at first boot there may or may not be a home directory for the
user anymore. To make things more consistent simply never create the
users home directory at image build time, which means in all image types
the users homedirectory should be created at first boot.

As a bonus this avoids the ostree commits containing a homedir which
will get mounted over.

Signed-off-by: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
parent a3749cd5
No related branches found
No related tags found
1 merge request!43Don't create user homedir in the image build
......@@ -3,7 +3,7 @@
set -e
echo "I: create user"
adduser --gecos User --disabled-login user
adduser --gecos User --no-create-home --disabled-login user
echo "I: set user password"
echo "user:user" | chpasswd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment