tss before nss quirk

This commit is contained in:
Harald Hoyer 2018-09-10 17:11:47 +02:00
parent bc0266de48
commit c8a3101e7b
2 changed files with 10 additions and 10 deletions

View file

@ -292,6 +292,15 @@ mkdir -p "$sysroot"/usr/share/factory/{var/etc,home}
chroot "$sysroot" update-ca-trust chroot "$sysroot" update-ca-trust
#---------------
# tpm2-tss
if [[ -f "$sysroot"/usr/lib/udev/rules.d/60-tpm-udev.rules ]]; then
echo 'tss:x:59:59:tpm user:/dev/null:/sbin/nologin' >> "$sysroot"/etc/passwd
echo 'tss:!!:15587::::::' >> "$sysroot"/etc/shadow
echo 'tss:x:59:' >> "$sysroot"/etc/group
echo 'tss:!::' >> "$sysroot"/etc/gshadow
fi
. "${BASEDIR}"/quirks/nss.sh . "${BASEDIR}"/quirks/nss.sh
for q in "${QUIRKS[@]}"; do for q in "${QUIRKS[@]}"; do
@ -316,15 +325,6 @@ C /var/etc/ssh - - - - -
EOF EOF
fi fi
#---------------
# tpm2-tss
if [[ -f "$sysroot"/usr/lib/udev/rules.d/60-tpm-udev.rules ]]; then
echo 'tss:x:59:59:tpm user:/dev/null:/sbin/nologin' >> "$sysroot"/etc/passwd
echo 'tss:!!:15587::::::' >> "$sysroot"/etc/shadow
echo 'tss:x:59:' >> "$sysroot"/etc/group
echo 'tss:!::' >> "$sysroot"/etc/gshadow
fi
#--------------- #---------------
# NetworkManager # NetworkManager
if [[ -d "$sysroot"/etc/NetworkManager ]]; then if [[ -d "$sysroot"/etc/NetworkManager ]]; then

View file

@ -23,7 +23,7 @@ chroot "$sysroot" bash -c 'useradd admin; usermod -a -G wheel admin; echo -n adm
chroot "$sysroot" bash -c 'passwd -e admin' chroot "$sysroot" bash -c 'passwd -e admin'
mkdir -p "$sysroot"/usr/share/factory/var mkdir -p "$sysroot"/usr/share/factory/var
mv "$sysroot"/etc/passwd "$sysroot"/etc/sub{u,g}id "$sysroot"/etc/shadow "$sysroot"/etc/group "$sysroot"/etc/gshadow "$sysroot"/usr/share/factory/var mv "$sysroot"/etc/passwd "$sysroot"/etc/sub{u,g}id "$sysroot"/etc/shadow "$sysroot"/etc/group "$sysroot"/etc/gshadow "$sysroot"/usr/share/factory/var/
rm -f "$sysroot"/etc/shadow- "$sysroot"/etc/gshadow- rm -f "$sysroot"/etc/shadow- "$sysroot"/etc/gshadow-