From: Maxim Mikityanskiy Date: Mon, 19 Jan 2015 16:14:08 +0000 (+0200) Subject: package/e2fsprogs: make /sbin/fsck available X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a93fc34;p=buildroot.git package/e2fsprogs: make /sbin/fsck available systemd looks for fsck in /sbin, so make symlink: /sbin/fsck -> /usr/sbin/fsck [Thomas: add comment.] Signed-off-by: Maxim Mikityanskiy Reviewed-by: Samuel Martin Signed-off-by: Thomas Petazzoni --- diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk index e0c4ee26fd..0537521022 100644 --- a/package/e2fsprogs/e2fsprogs.mk +++ b/package/e2fsprogs/e2fsprogs.mk @@ -118,5 +118,14 @@ ifeq ($(BR2_PACKAGE_E2FSPROGS_FINDFS),y) E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_FINDFS_SYMLINK endif +# systemd really wants to have fsck in /sbin +define E2FSPROGS_TARGET_FSCK_SYMLINK + ln -sf ../usr/sbin/fsck $(TARGET_DIR)/sbin/fsck +endef + +ifeq ($(BR2_PACKAGE_E2FSPROGS_FSCK),y) +E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_FSCK_SYMLINK +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))