ignore nfs and sub{u/g}id files in mtree (#847)

This commit is contained in:
Caleb St. John
2025-04-30 15:55:26 -04:00
committed by GitHub
parent 1c7b41c3b0
commit a386ce56ed
+4
View File
@@ -33,11 +33,14 @@ ETC_FILES_TO_REMOVE = [
'etc/chrony/chrony.conf',
'etc/default/rpcbind',
'etc/netdata/netdata.conf',
'etc/nfs.conf',
'etc/nginx/nginx.conf',
'etc/proftpd/proftpd.conf',
'etc/proftpd/tls.conf',
'etc/snmp/snmpd.conf',
'etc/ssh/sshd_config',
'etc/subuid',
'etc/subgid',
'etc/syslog-ng/syslog-ng.conf',
'etc/rc2.d/K01ssh', # systemd removes these symlinks on ssh start
'etc/rc3.d/K01ssh',
@@ -92,6 +95,7 @@ def _do_mtree_impl(mtree_file_path, version):
'--exclude', './etc/passwd',
'--exclude', './etc/shadow',
'--exclude', './etc/sudoers',
'--exclude', './etc/nfs.conf.d',
'--exclude', './etc/nut',
'--exclude', './etc/dhcp/dhclient.conf',
'--exclude', './etc/pam.d/common-account',