]> git.plutz.net Git - blast/commitdiff
do not set up homedirs during image assembly (use pam instead)
authorPaul Hänsch <paul@plutz.net>
Sun, 21 Jul 2019 15:40:41 +0000 (17:40 +0200)
committerPaul Hänsch <paul@plutz.net>
Sun, 21 Jul 2019 15:40:41 +0000 (17:40 +0200)
Makefile
modules/default.mk

index fb0db2b294daf13a1dad2592c508f7cd22032343..62ebebe1892b85822b683d2c8bc5f6cf9d5ff36f 100644 (file)
--- 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"
 
index 5a21e36d22f5ab94599489f94f86ea5c751c8ab1..1614fbd2d8a4a2c35a15d27c0e7e29f0907c58af 100644 (file)
@@ -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}