user.eclass: Prevent automated home creation in useradd

Pass '-M' to prevent useradd from automatically creating the home
directory (depending on system configuration).  We create the home
directory ourselves anyway, and we have better control over how it's
created this way.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2019-06-20 10:16:38 +02:00
parent 3afc0d7b8b
commit b2cf1be41c
+1 -1
View File
@@ -209,7 +209,7 @@ enewuser() {
;;
*)
useradd -N -r "${opts[@]}" "${euser}" || die
useradd -M -N -r "${opts[@]}" "${euser}" || die
;;
esac