From 142e7df6cfe3d83e9b19f2b8d100378e9d28ce84 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 29 Dec 2020 23:55:38 +0100 Subject: [PATCH] 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. --- buildroot-external/scripts/rootfs-layer.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildroot-external/scripts/rootfs-layer.sh b/buildroot-external/scripts/rootfs-layer.sh index f737a0150..76e05969c 100755 --- a/buildroot-external/scripts/rootfs-layer.sh +++ b/buildroot-external/scripts/rootfs-layer.sh @@ -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*" }