OSInside / kiwi

KIWI - Appliance Builder Next Generation
https://osinside.github.io/kiwi
GNU General Public License v3.0
300 stars 152 forks source link

Create parent directories for <user> home #2493

Open ampresent opened 7 months ago

ampresent commented 7 months ago

Problem description

Add a new user and assign it with a new home directory through. <user name="newuser" home="/path/to/home"/> Kiwi fails to create image when /path/to/ doesn't exist, because useradd -m -d /path/to/home newuser assumes /path/to/ exists.

Expected behaviour

Kiwi creates /path/to/home automatically and assign it to newuser.

Steps to reproduce the behaviour

OS and Software information

schaefi commented 7 months ago

It's interesting that you run into that issue because

You should be able to workaround the issue by creating the parent in a config.sh script of your image description. But I would be interested which use-case triggered the problem in the first place

No objections to make sure kiwi creates the parent though