From 8561374e037525101ba49997fbf0897b2948f2be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 21 Jul 2019 17:40:41 +0200 Subject: [PATCH] do not set up homedirs during image assembly (use pam instead) --- Makefile | 1 + modules/default.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb0db2b..62ebebe 100644 --- a/Makefile +++ b/Makefile @@ -197,6 +197,7 @@ _copy: ${SYSROOT} ${CFGROOT} _config: _common_config _common_config: ${CFGROOT} ln -sf /dev/null "$${CFGROOT}/etc/systemd/network/99-default.link" + printf '\nsession optional pam_mkhomedir.so umask=0027\n' >>"$${CFGROOT}/etc/pam.d/common-session" printf 'LABEL=FSROOT / ext4 auto,nofail,rw 0 0\nLABEL=BOOT /boot vfat auto,nofail,ro 0 0\n' \ >"$${CFGROOT}/etc/fstab" diff --git a/modules/default.mk b/modules/default.mk index 5a21e36..1614fbd 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -91,7 +91,7 @@ _rootkey: ${CFGROOT} ${rootkey}.pub _users: ${CFGROOT} for u in $(subst ${comma_},${space_},${users}); do \ - chroot "$${CFGROOT}" useradd -m -s /bin/bash -p "$$(openssl passwd "")" "$$u"; \ + chroot "$${CFGROOT}" useradd -s /bin/bash -p "$$(openssl passwd "")" "$$u"; \ done _hostname: ${CFGROOT} -- 2.39.2