diff mbox

[1/1] package/e2fsprogs: fix fsck when using systemd

Message ID 1465661756-11389-1-git-send-email-martin@barkynet.com
State Accepted
Headers show

Commit Message

Martin Bark June 11, 2016, 4:15 p.m. UTC
Commit a93fc34 modified e2fsprogs to symlink /usr/sbin/fsck to /sbin/fsck
to keep systemd happy.  However, later on commit c5bd8af6 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 commit c5bd8af6 obsoletes commit a93fc34 revert the changes from
commit a93fc34 to solve the issue.

Signed-off-by: Martin Bark <martin@barkynet.com>
---
 package/e2fsprogs/e2fsprogs.mk | 9 ---------
 1 file changed, 9 deletions(-)

Comments

Yann E. MORIN June 12, 2016, 9:09 p.m. UTC | #1
Martin, All

On 2016-06-11 17:15 +0100, Martin Bark spake thusly:
> Commit a93fc34 modified e2fsprogs to symlink /usr/sbin/fsck to /sbin/fsck
> to keep systemd happy.  However, later on commit c5bd8af6 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 commit c5bd8af6 obsoletes commit a93fc34 revert the changes from
> commit a93fc34 to solve the issue.
> 
> Signed-off-by: Martin Bark <martin@barkynet.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/e2fsprogs/e2fsprogs.mk | 9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk
> index 5ba9278..7aa0285 100644
> --- a/package/e2fsprogs/e2fsprogs.mk
> +++ b/package/e2fsprogs/e2fsprogs.mk
> @@ -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))
> -- 
> 2.7.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Thomas Petazzoni June 15, 2016, 9:25 p.m. UTC | #2
Hello,

On Sat, 11 Jun 2016 17:15:56 +0100, Martin Bark wrote:
> Commit a93fc34 modified e2fsprogs to symlink /usr/sbin/fsck to /sbin/fsck
> to keep systemd happy.  However, later on commit c5bd8af6 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 commit c5bd8af6 obsoletes commit a93fc34 revert the changes from
> commit a93fc34 to solve the issue.
> 
> Signed-off-by: Martin Bark <martin@barkynet.com>
> ---
>  package/e2fsprogs/e2fsprogs.mk | 9 ---------
>  1 file changed, 9 deletions(-)

Applied to master, thanks. Thanks Yann for the review.

Thomas
diff mbox

Patch

diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk
index 5ba9278..7aa0285 100644
--- a/package/e2fsprogs/e2fsprogs.mk
+++ b/package/e2fsprogs/e2fsprogs.mk
@@ -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))