Use "-ignore_readdir_race" instead

This commit is contained in:
Héctor Molinero Fernández 2020-06-12 22:48:02 +02:00
parent e919a37309
commit 1122699107

View File

@ -88,10 +88,7 @@ build {
rm -f /etc/ssh/ssh_host_*key*
rm -f /etc/wireguard/*-*key /etc/wireguard/*-iface
find /var/lib/apt/lists/ -mindepth 1 -delete
find / -type f -regextype egrep \
-regex '.+\.(dpkg|ucf)-(old|new|dist)' \
-not -regex '/(dev|proc|sys|run)/.*' \
-delete
find / -ignore_readdir_race -type f -regex '.+\.\(dpkg\|ucf\)-\(old\|new\|dist\)' -delete
EOF
]
}