mirror of
https://github.com/KDE/kde-linux.git
synced 2026-06-14 02:27:07 -04:00
make sure machine dependent files don't end up in the factory
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user