From a93fc3455a46ba118a332fcda17809a14d020f60 Mon Sep 17 00:00:00 2001 From: Maxim Mikityanskiy Date: Mon, 19 Jan 2015 18:14:08 +0200 Subject: [PATCH] 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 --- package/e2fsprogs/e2fsprogs.mk | 9 +++++++++ 1 file changed, 9 insertions(+) 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)) -- 2.30.2