Open ydirson opened 2 years ago
Please go more into detail here. Steps to reproduce and problems you see.
At the end you want to see both these files in the homedir, and possibly more coming from /etc/skel
via other packages.
Tried debian-stretch and debian-bullseye: both do not copy skel in useradd even if explicitly set -k /etc/skel
.
So we can't remove that hack so far.
Is is a hack? Does any distro copy skel if HOME exists on useradd?
At least it looks like a hack. Maybe we can add a user other then isar with other homedir here to make things more clear.
Maybe it is too many examples in one but it serves the purpose to show how to populate a users homedir from multiple sources.
But please stay on topic so we can close this. I will stop here because we do not do issues in this project but unfortunately they are not disabled.
example-raw/files/postinst
reads:This last comment about "homedir was part of the package" does not seem to be correct (any more?), so likely the skel copy should occur on
useradd
. After removing this line the generated image still gets those files populated. Possibly more should be cleaned up at the same time ?