Drop e2scrub (#1144)

The e2scrub utilities only make sense on system which use LVM. They
come with e2fsprogs and can't be disabled currently. Drop them manually
in our post-build script.
This commit is contained in:
Stefan Agner 2020-12-29 23:55:38 +01:00 committed by GitHub
parent 4d6991fd45
commit 142e7df6cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,10 @@ function fix_rootfs() {
# Use systemd-resolved for Host OS resolve
sed -i '/^hosts:/ {/resolve/! s/files/resolve [!UNAVAIL=return] files/}' "${TARGET_DIR}/etc/nsswitch.conf"
# Remove e2scrub (LVM specific tools provided by e2fsprogs)
rm -f "/usr/lib/systemd/system/e2scrub*"
rm -f "/usr/sbin/e2scrub*" "/usr/lib/e2fsprogs/e2scrub*"
}