# HG changeset patch # Parent d341f05a3640a1f4cd92f7b8eefb4d221c13b408 Work around RHEL5's ext2fs/ext4fs split. We need to link against a new enough version of libext2fs to be able to read ext4 partitions. This is only needed because RHEL5 puts the latest ext2 libs in their own directory. Other distros (and other RHELs) work fine already. This a hard-hack; a proper fix would add the check to configure. This patch can be simply removed when we move to Centos 6. diff --git a/tools/libfsimage/ext2fs-lib/Makefile b/tools/libfsimage/ext2fs-lib/Makefile --- a/tools/libfsimage/ext2fs-lib/Makefile +++ b/tools/libfsimage/ext2fs-lib/Makefile @@ -4,7 +4,7 @@ LIB_SRCS-y = ext2fs-lib.c FS = ext2fs-lib -FS_LIBDEPS = -lext2fs +FS_LIBDEPS = -lext4fs .PHONY: all all: fs-all diff --git a/tools/libfsimage/ext2fs-lib/ext2fs-lib.c b/tools/libfsimage/ext2fs-lib/ext2fs-lib.c --- a/tools/libfsimage/ext2fs-lib/ext2fs-lib.c +++ b/tools/libfsimage/ext2fs-lib/ext2fs-lib.c @@ -22,7 +22,7 @@ */ #include -#include +#include #include #include