aboutsummaryrefslogtreecommitdiff
path: root/package/e2fsprogs/e2fsprogs.mk
diff options
context:
space:
mode:
authorGravatar Maxim Mikityanskiy <maxtram95@gmail.com>2015-01-19 18:14:08 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-10 19:34:21 +0200
commita93fc3455a46ba118a332fcda17809a14d020f60 (patch)
treefe41ce4558174f5e12e097c83f22e017fb8772aa /package/e2fsprogs/e2fsprogs.mk
parent821f30c82c41b15ca432c01ec7dfb8060941b08d (diff)
downloadbuildroot-a93fc3455a46ba118a332fcda17809a14d020f60.tar.gz
buildroot-a93fc3455a46ba118a332fcda17809a14d020f60.tar.bz2
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 <maxtram95@gmail.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/e2fsprogs/e2fsprogs.mk')
-rw-r--r--package/e2fsprogs/e2fsprogs.mk9
1 files changed, 9 insertions, 0 deletions
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))