make sure machine dependent files don't end up in the factory

This commit is contained in:
Harald Sitter
2025-09-15 06:45:38 +02:00
parent 4432e167df
commit dcb66270b7

View File

@@ -25,3 +25,26 @@ rm --recursive --force /usr/share/factory/etc/pam.d
# Copy all of etc into factory dir for tmpfiles.d (see tmpfiles.d docs).
[ -d /usr/share/factory ] || mkdir /usr/share/factory
cp --archive --no-target-directory --update=all /etc /usr/share/factory/etc
# Clean up factory content that we absolutely do not want because it is machine/installation dependent.
cd /usr/share/factory/etc
rm --force \
.pwd.lock \
passwd \
passwd- \
shadow \
shadow- \
gshadow \
gshadow- \
group \
group- \
localtime \
machine-id \
subuid \
subgid- \
subgid \
subgid- \
crypttab \
vconsole.conf \
hostname \
locale.conf