[Buildroot] [PATCH 2/2] e2fsprogs: keep util-linux's fsck if chosen

Carlos Santos casantos at datacom.ind.br
Mon Nov 21 13:10:54 UTC 2016

> From: "Maxime Hadjinlian" <maxime.hadjinlian at gmail.com>
> To: buildroot at buildroot.org
> Sent: Friday, November 18, 2016 1:24:27 PM
> Subject: [Buildroot] [PATCH 2/2] e2fsprogs: keep util-linux's fsck if chosen

> Since e2fsprogs depends on util-linux, it's build after it. It means
> that if you want the fsck wrapper from util-linux (which is better
> maintained and you are sure that it's compatible with systemd) and you
> want e2fsck, it won't work.
> Because of the merge of /usr/bin and /bin, we end up deleting the fsck
> from util-linux.
> This makes an attempt at fixing the issues.
> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
> ---
> I am cleary not satisfied by the way I handled that, I am not even sure
> it works in all cases. I can't spend much more time on this right now,
> so I need advice/help from the community to fix that in a proper/generic
> manner.
What about using something like this, instead?

diff --git a/package/e2fsprogs/Config.in b/package/e2fsprogs/Config.in
index 4db11e1..c0b48e1 100644
--- a/package/e2fsprogs/Config.in
+++ b/package/e2fsprogs/Config.in
@@ -60,8 +60,12 @@ config BR2_PACKAGE_E2FSPROGS_FILEFRAG
        bool "fsck"
+       depends on !BR2_PACKAGE_UTIL_LINUX_FSCK
        default y
+comment "the fsck from util-linux has preference over this one"
+       depends on BR2_PACKAGE_UTIL_LINUX_FSCK
        bool "fuse2fs"
        depends on !BR2_STATIC_LIBS # libfuse

Carlos Santos (Casantos)

More information about the buildroot mailing list