package/e2fsprogs: fix fsck when using systemd
Commita93fc34
modified e2fsprogs to symlink /usr/sbin/fsck to /sbin/fsck to keep systemd happy. However, later on commitc5bd8af6
has forced /usr/sbin to be a symlink to /sbin when using systemd. This means fsck gets destroyed as a symlink to itself when using systemd or when setting BR2_ROOTFS_MERGED_USR. Since commitc5bd8af6
obsoletes commita93fc34
revert the changes from commita93fc34
to solve the issue. Signed-off-by: Martin Bark <martin@barkynet.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
e7127d25c5
commit
c1aa7a5b60
@ -155,14 +155,5 @@ ifeq ($(BR2_PACKAGE_E2FSPROGS_TUNE2FS),y)
|
||||
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_TUNE2FS_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))
|
||||
|
Loading…
Reference in New Issue
Block a user