e2fsprogs: keep util-linux's fsck if chosen
PATCH v2 1/1 e2fsprogs: keep util-linux's fsck if chosen
Since e2fsprogs depends on util-linux, it's built after it. So you can't have e2fsck from e2fsprogs along with the fsck wrapper from util-linux (which is better maintained and compatible with systemd) because we end up deleting the fsck from util-linux.
Fix this issue by disabling e2fsprogs' fsck if the one from util-linux is selected.
---
Changes v1->v2
- Add depenndece on !BR2_PACKAGE_UTIL_LINUX_FSCK to BR2_PACKAGE_E2FSPROGS_FSCK
- Add comment telling that the fsck from util-linux has preference.
- Pass "--enable-fsck" conditionally to configure
- Remove the guard around the removal of /usr/sbin/fsck, since the fsck from busybox and util-linux are installed at /sbin
- Improve comments and commit message
In the long run the e2fsprogs recipe deserves an extreme overhauling like we did for util-linux but right now these changes are enough to fix the specific problem of fsck.
--- package/e2fsprogs/Config.in | 4 ++++ package/e2fsprogs/e2fsprogs.mk | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-)
package/e2fsprogs/Config.in +4 -0
@@ -59,8 +59,12 @@ config BR2_PACKAGE_E2FSPROGS_FILEFRAG config BR2_PACKAGE_E2FSPROGS_FSCK bool "fsck" + depends on !BR2_PACKAGE_UTIL_LINUX_FSCK default y +comment "the fsck from util-linux has preference over this one" + depends on BR2_PACKAGE_UTIL_LINUX_FSCK + config BR2_PACKAGE_E2FSPROGS_FUSE2FS bool "fuse2fs" depends on !BR2_STATIC_LIBS # libfuse
package/e2fsprogs/e2fsprogs.mk +9 -3
@@ -11,7 +11,7 @@ E2FSPROGS_LICENSE = GPL-2.0, BSD-3-Clause (libuuid), MIT-like with advertising c E2FSPROGS_LICENSE_FILES = NOTICE lib/uuid/COPYING lib/ss/mit-sipb-copyright.h lib/et/internal.h E2FSPROGS_INSTALL_STAGING = YES E2FSPROGS_DEPENDENCIES = host-pkgconf util-linux -# we don't have a host-util-linux +# We don't need host-util-linux, since we disable libblkid, libuuid. HOST_E2FSPROGS_DEPENDENCIES = host-pkgconf # e4defrag doesn't build on older systems like RHEL5.x, and we don't
@@ -24,11 +24,11 @@ E2FSPROGS_CONF_OPTS = \ $(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),,--disable-debugfs) \ $(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),,--disable-imager) \ $(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),,--disable-defrag) \ + $(if $(BR2_PACKAGE_E2FSPROGS_FSCK),--enable-fsck,) \ $(if $(BR2_PACKAGE_E2FSPROGS_RESIZE2FS),,--disable-resizer) \ --disable-uuidd \ --disable-libblkid \ --disable-libuuid \ - --enable-fsck \ --disable-e2initrd-helper \ --disable-testio-debug \ --disable-rpath
@@ -146,10 +146,16 @@ E2FSPROGS_DEPENDENCIES += busybox define E2FSPROGS_REMOVE_BUSYBOX_APPLETS $(RM) -f $(TARGET_DIR)/bin/chattr $(RM) -f $(TARGET_DIR)/bin/lsattr - $(RM) -f $(TARGET_DIR)/sbin/fsck $(RM) -f $(TARGET_DIR)/sbin/tune2fs $(RM) -f $(TARGET_DIR)/sbin/e2label endef + +ifeq ($(BR2_PACKAGE_E2FSPROGS_FSCK),y) +# We only build fsck if it's not selected in util-linux, so at this +# point /sbin/fsck must have come from busybox. +E2FSPROGS_REMOVE_BUSYBOX_APPLETS += $(RM) -f $(TARGET_DIR)/sbin/fsck +endif + E2FSPROGS_PRE_INSTALL_TARGET_HOOKS += E2FSPROGS_REMOVE_BUSYBOX_APPLETS endif
Signature · 1 line
2.7.4
PATCH v2 1/1 e2fsprogs: keep util-linux's fsck if chosen
Hi all,
Quoted 20 lines · Carlos Santos
Since e2fsprogs depends on util-linux, it's built after it. So you can't have e2fsck from e2fsprogs along with the fsck wrapper from util-linux (which is better maintained and compatible with systemd) because we end up deleting the fsck from util-linux.
Fix this issue by disabling e2fsprogs' fsck if the one from util-linux is selected.
Signed-off-by Maxime Hadjinlian <[email protected]>Signed-off-by Carlos Santos <[email protected]>---
Changesv1->v2
- Add depenndece on !BR2_PACKAGE_UTIL_LINUX_FSCK toBR2_PACKAGE_E2FSPROGS_FSCK
- Add comment telling that the fsck from util-linux has preference.
- Pass "--enable-fsck" conditionally to configure
- Remove the guard around the removal of/usr/sbin/fsck, since the fsck from busybox and util-linux are installed at /sbin
- Improve comments and commit message
Quoted 4 lines
In the long run the e2fsprogs recipe deserves an extreme overhauling like we did for util-linux but right now these changes are enough to fix the specific problem of fsck.
---
It's almost working, but there's a trick for systemd (*tadaaa*) To have fsck work at boot time, you *MUST* have the fsck (the wrapper) from util-linux, because systemd passes arguments that do not exists in the e2fsprogs wrapper. But you should use the e2fsck program and its link.
So for this to truly work, if systemd is selected, you should select util-linux's fsck, disable e2fsprogs fsck wrapper and enable e2fsck.
Note that in case of failure, systemd will try to run emergency.target and all kinds of things may happen if you haven't created some post-build or other scripts.
Quoted 51 lines
package/e2fsprogs/Config.in | 4 ++++ package/e2fsprogs/e2fsprogs.mk | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-)package/e2fsprogs/Config.in +4
-0@@ -59,8 +59,12 @@ config BR2_PACKAGE_E2FSPROGS_FILEFRAG config BR2_PACKAGE_E2FSPROGS_FSCK bool "fsck" + depends on !BR2_PACKAGE_UTIL_LINUX_FSCK default y +comment "the fsck from util-linux has preference over this one" + depends on BR2_PACKAGE_UTIL_LINUX_FSCK + config BR2_PACKAGE_E2FSPROGS_FUSE2FS bool "fuse2fs" depends on !BR2_STATIC_LIBS # libfusepackage/e2fsprogs/e2fsprogs.mk +2
-2@@ -11,7 +11,7 @@ E2FSPROGS_LICENSE = GPL-2.0, BSD-3-Clause (libuuid), MIT-like with advertising c E2FSPROGS_LICENSE_FILES = NOTICE lib/uuid/COPYING lib/ss/mit-sipb-copyright.h lib/et/internal.h E2FSPROGS_INSTALL_STAGING = YES E2FSPROGS_DEPENDENCIES = host-pkgconf util-linux -# we don't have a host-util-linux +# We don't need host-util-linux, since we disable libblkid, libuuid. HOST_E2FSPROGS_DEPENDENCIES = host-pkgconf # e4defrag doesn't build on older systems like RHEL5.x, and we don't@@ -24,11 +24,11 @@ E2FSPROGS_CONF_OPTS = \ $(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),,--disable-debugfs) \ $(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),,--disable-imager) \ $(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),,--disable-defrag) \ + $(if $(BR2_PACKAGE_E2FSPROGS_FSCK),--enable-fsck,) \ $(if $(BR2_PACKAGE_E2FSPROGS_RESIZE2FS),,--disable-resizer) \ --disable-uuidd \ --disable-libblkid \ --disable-libuuid \ - --enable-fsck \ --disable-e2initrd-helper \ --disable-testio-debug \ --disable-rpath@@ -146,10 +146,16 @@ E2FSPROGS_DEPENDENCIES += busybox define E2FSPROGS_REMOVE_BUSYBOX_APPLETS $(RM) -f $(TARGET_DIR)/bin/chattr $(RM) -f $(TARGET_DIR)/bin/lsattr
package/e2fsprogs/e2fsprogs.mk E2FSPROGS_DEPENDENCIES += busybox · line 157
Quoted 10 lines
package/e2fsprogs/e2fsprogs.mk +6
-1- $(RM) -f $(TARGET_DIR)/sbin/fsck $(RM) -f $(TARGET_DIR)/sbin/tune2fs $(RM) -f $(TARGET_DIR)/sbin/e2label endef + +ifeq ($(BR2_PACKAGE_E2FSPROGS_FSCK),y) +# We only build fsck if it's not selected in util-linux, so at this +# point /sbin/fsck must have come from busybox. +E2FSPROGS_REMOVE_BUSYBOX_APPLETS += $(RM) -f $(TARGET_DIR)/sbin/fsck +endif
This part doesn't work with systemd as you will remove the fsck wrapper from util-linux which is the only one that can be used. And since e2fsprogs depends on util-linux, you are screwed :/.
Quoted 7 lines
package/e2fsprogs/e2fsprogs.mk +1
-1+ E2FSPROGS_PRE_INSTALL_TARGET_HOOKS += E2FSPROGS_REMOVE_BUSYBOX_APPLETS endif --2.7.4
PATCH v2 1/1 e2fsprogs: keep util-linux's fsck if chosen
Quoted 33 lines
From: "Maxime Hadjinlian" <[email protected]>
To: "Carlos Santos" <[email protected]>
Cc: "buildroot" <[email protected]>
Sent: Sunday, April 2, 2017 7:13:18 AM
Subject: Re: [PATCH v2] e2fsprogs: keep util-linux's fsck if chosenHi all,
Quoted 20 lines · Carlos Santos
Since e2fsprogs depends on util-linux, it's built after it. So you can't have e2fsck from e2fsprogs along with the fsck wrapper from util-linux (which is better maintained and compatible with systemd) because we end up deleting the fsck from util-linux.
Fix this issue by disabling e2fsprogs' fsck if the one from util-linux is selected.
Signed-off-by Maxime Hadjinlian <[email protected]>Signed-off-by Carlos Santos <[email protected]>---
Changesv1->v2
- Add depenndece on !BR2_PACKAGE_UTIL_LINUX_FSCK toBR2_PACKAGE_E2FSPROGS_FSCK
- Add comment telling that the fsck from util-linux has preference.
- Pass "--enable-fsck" conditionally to configure
- Remove the guard around the removal of/usr/sbin/fsck, since the fsck from busybox and util-linux are installed at /sbin
- Improve comments and commit messageQuoted 4 lines
In the long run the e2fsprogs recipe deserves an extreme overhauling like we did for util-linux but right now these changes are enough to fix the specific problem of fsck.
---
Quoted 7 lines
It's almost working, but there's a trick for systemd (*tadaaa*) To have fsck work at boot time, you *MUST* have the fsck (the wrapper) from util-linux, because systemd passes arguments that do not exists in the e2fsprogs wrapper. But you should use the e2fsck program and its link.
So for this to truly work, if systemd is selected, you should select util-linux's fsck, disable e2fsprogs fsck wrapper and enable e2fsck.
Do you mean something like this in package/systemd/Config.in?
select BR2_PACKAGE_UTIL_LINUX_FSCK
select BR2_PACKAGE_E2FSPROGS
select BR2_PACKAGE_E2FSPROGS_E2FSCK
I agree, but that must be done in a subsequent commit.
Quoted 3 lines
Note that in case of failure, systemd will try to run emergency.target and all kinds of things may happen if you haven't created some post-build or other scripts.
I'm not well versed on systemd (not even poorly versed, in fact). Feel free to educate me. :-)
Signature · 4 lines
Carlos Santos (Casantos) - DATACOM, P&D ?The greatest triumph that modern PR can offer is the transcendent success of having your words and actions judged by your reputation, rather than the other way about.? ? Christopher Hitchens
PATCH v2 1/1 e2fsprogs: keep util-linux's fsck if chosen
Quoted 41 lines · Carlos Santos
Quoted 33 lines
From: "Maxime Hadjinlian" <[email protected]>
To: "Carlos Santos" <[email protected]>
Cc: "buildroot" <[email protected]>
Sent: Sunday, April 2, 2017 7:13:18 AM
Subject: Re: [PATCH v2] e2fsprogs: keep util-linux's fsck if chosenHi all,
Quoted 20 lines · Carlos Santos
Since e2fsprogs depends on util-linux, it's built after it. So you can't have e2fsck from e2fsprogs along with the fsck wrapper from util-linux (which is better maintained and compatible with systemd) because we end up deleting the fsck from util-linux.
Fix this issue by disabling e2fsprogs' fsck if the one from util-linux is selected.
Signed-off-by Maxime Hadjinlian <[email protected]>Signed-off-by Carlos Santos <[email protected]>---
Changesv1->v2
- Add depenndece on !BR2_PACKAGE_UTIL_LINUX_FSCK toBR2_PACKAGE_E2FSPROGS_FSCK
- Add comment telling that the fsck from util-linux has preference.
- Pass "--enable-fsck" conditionally to configure
- Remove the guard around the removal of/usr/sbin/fsck, since the fsck from busybox and util-linux are installed at /sbin
- Improve comments and commit messageQuoted 4 lines
In the long run the e2fsprogs recipe deserves an extreme overhauling like we did for util-linux but right now these changes are enough to fix the specific problem of fsck.
---Quoted 7 lines
It's almost working, but there's a trick for systemd (*tadaaa*) To have fsck work at boot time, you *MUST* have the fsck (the wrapper) from util-linux, because systemd passes arguments that do not exists in the e2fsprogs wrapper. But you should use the e2fsck program and its link.
So for this to truly work, if systemd is selected, you should select util-linux's fsck, disable e2fsprogs fsck wrapper and enable e2fsck.
Quoted 7 lines
Do you mean something like this in package/systemd/Config.in?
select
BR2_PACKAGE_UTIL_LINUX_FSCK
selectBR2_PACKAGE_E2FSPROGS
selectBR2_PACKAGE_E2FSPROGS_E2FSCKI agree, but that must be done in a subsequent commit.
Oh yes, absolutely. Also, the busybox's fsck won't work with systemd, so you must also take that into account.
Quoted 7 lines
Quoted 4 lines
Note that in case of failure, systemd will try to run emergency.target and all kinds of things may happen if you haven't created some post-build or other scripts.
I'm not well versed on systemd (not even poorly versed, in fact). Feel free to educate me. :-)
Well, in this case, I am just putting this here to share the knowledge, but I don't think Buildroot specifically should do anything about this. It's not our role I think. Maybe we could add a pointer in the "Help" in the menuconfig to the systemd's documentation or something.
Quoted 6 lines
--
Carlos Santos (Casantos) - DATACOM, P&D
?The greatest triumph that modern PR can offer is the transcendent success of having your words and actions judged by your reputation, rather than the other way about.? ? Christopher Hitchens
PATCH v2 1/1 e2fsprogs: keep util-linux's fsck if chosen
Quoted 50 lines
From: "Maxime Hadjinlian" <[email protected]>
To: "Carlos Santos" <[email protected]>
Cc: "buildroot" <[email protected]>
Sent: Sunday, April 2, 2017 9:10:45 AM
Subject: Re: [PATCH v2] e2fsprogs: keep util-linux's fsck if chosenQuoted 43 lines · Carlos Santos
Quoted 33 lines
From: "Maxime Hadjinlian" <[email protected]>
To: "Carlos Santos" <[email protected]>
Cc: "buildroot" <[email protected]>
Sent: Sunday, April 2, 2017 7:13:18 AM
Subject: Re: [PATCH v2] e2fsprogs: keep util-linux's fsck if chosenHi all,
Quoted 20 lines · Carlos Santos
Since e2fsprogs depends on util-linux, it's built after it. So you can't have e2fsck from e2fsprogs along with the fsck wrapper from util-linux (which is better maintained and compatible with systemd) because we end up deleting the fsck from util-linux.
Fix this issue by disabling e2fsprogs' fsck if the one from util-linux is selected.
Signed-off-by Maxime Hadjinlian <[email protected]>Signed-off-by Carlos Santos <[email protected]>---
Changesv1->v2
- Add depenndece on !BR2_PACKAGE_UTIL_LINUX_FSCK toBR2_PACKAGE_E2FSPROGS_FSCK
- Add comment telling that the fsck from util-linux has preference.
- Pass "--enable-fsck" conditionally to configure
- Remove the guard around the removal of/usr/sbin/fsck, since the fsck from busybox and util-linux are installed at /sbin
- Improve comments and commit messageQuoted 4 lines
In the long run the e2fsprogs recipe deserves an extreme overhauling like we did for util-linux but right now these changes are enough to fix the specific problem of fsck.
---Quoted 7 lines
It's almost working, but there's a trick for systemd (*tadaaa*) To have fsck work at boot time, you *MUST* have the fsck (the wrapper) from util-linux, because systemd passes arguments that do not exists in the e2fsprogs wrapper. But you should use the e2fsck program and its link.
So for this to truly work, if systemd is selected, you should select util-linux's fsck, disable e2fsprogs fsck wrapper and enable e2fsck.Do you mean something like this in package/systemd/Config.in?
Quoted 7 lines
Quoted 5 lines
select
BR2_PACKAGE_UTIL_LINUX_FSCK
selectBR2_PACKAGE_E2FSPROGS
selectBR2_PACKAGE_E2FSPROGS_E2FSCKI agree, but that must be done in a subsequent commit.
Oh yes, absolutely. Also, the busybox's fsck won't work with systemd, so you must also take that into account.
That could be handled in the util-linux recipe building busybox before, like e2fsprogs does. However, util-linux installs fsck unconditionally while busybox avoids overriding an existing /sbin/fsck, so their build and installation should be irrelevant. A good test is to run
$ make clean systemd busybox
$ make clean busybox systemdafter making the required changes in the systemd recipe and Config.in, of course. In both cases $(TARGET_DIR)/sbin/fsck should have come from util-linux and no $(TARGET_DIR)/usr/sbin/fsck should exist.
Quoted 11 lines
Quoted 6 lines
Quoted 3 lines
Note that in case of failure, systemd will try to run emergency.target and all kinds of things may happen if you haven't created some post-build or other scripts.
I'm not well versed on systemd (not even poorly versed, in fact). Feel free to educate me. :-)
Well, in this case, I am just putting this here to share the knowledge, but I don't think Buildroot specifically should do anything about this. It's not our role I think. Maybe we could add a pointer in the "Help" in the menuconfig to the systemd's documentation or something.
I agree, but I don't feel confident to change the systemd recipe beyond the minimal requirements to fix the fsck issue.
Signature · 4 lines
Carlos Santos (Casantos) - DATACOM, P&D ?The greatest triumph that modern PR can offer is the transcendent success of having your words and actions judged by your reputation, rather than the other way about.? ? Christopher Hitchens
PATCH v2 1/1 e2fsprogs: keep util-linux's fsck if chosen
Quoted 9 lines
From: "Carlos Santos" <[email protected]>
To: "Maxime Hadjinlian" <[email protected]>
Cc: "buildroot" <[email protected]>
Sent: Sunday, April 2, 2017 11:30:37 AM
Subject: Re: [Buildroot] [PATCH v2] e2fsprogs: keep util-linux's fsck if chosenlike e2fsprogs does. However, util-linux installs fsck unconditionally while busybox avoids overriding an existing
/sbin/fsck, so their build and installation should be irrelevant. A good test is to run
build and installation *order* should be irrelevant
Signature · 4 lines
Carlos Santos (Casantos) - DATACOM, P&D ?The greatest triumph that modern PR can offer is the transcendent success of having your words and actions judged by your reputation, rather than the other way about.? ? Christopher Hitchens
PATCH v2 1/1 e2fsprogs: keep util-linux's fsck if chosen
In reply to Maxime HadjinlianQuoted 9 lines · Maxime Hadjinlian
Hi all,
Quoted 6 lines · Carlos Santos
Since e2fsprogs depends on util-linux, it's built after it. So you can't have e2fsck from e2fsprogs along with the fsck wrapper from util-linux (which is better maintained and compatible with systemd) because we end up deleting the fsck from util-linux.
Fix this issue by disabling e2fsprogs' fsck if the one from util-linux
^^^^
To be clear: we're only talking about the fsck wrapper here, not about e2fsck
itself. So I would put that explicitly in the commit message, i.e. "fsck wrapper" instead of just "fsck".
Quoted 18 lines
Quoted 14 lines
is selected.
Signed-off-by Maxime Hadjinlian <[email protected]>Signed-off-by Carlos Santos <[email protected]>---
Changesv1->v2
- Add depenndece on !BR2_PACKAGE_UTIL_LINUX_FSCK toBR2_PACKAGE_E2FSPROGS_FSCK
- Add comment telling that the fsck from util-linux has preference.
- Pass "--enable-fsck" conditionally to configure
- Remove the guard around the removal of/usr/sbin/fsck, since the fsck from busybox and util-linux are installed at /sbin
- Improve comments and commit messageQuoted 4 lines
In the long run the e2fsprogs recipe deserves an extreme overhauling like we did for util-linux but right now these changes are enough to fix the specific problem of fsck.
---
Quoted 5 lines
It's almost working, but there's a trick for systemd (*tadaaa*) To have fsck work at boot time, you *MUST* have the fsck (the wrapper) from util-linux, because systemd passes arguments that do not exists in the e2fsprogs wrapper. But you should use the e2fsck program and its link.
Which is exactly what this patch does, no? It will use the fsck wrapper from
util-linux, not the one from e2fsprogs.
What this patch does NOT do is to make sure that BR2_PACKAGE_UTIL_LINUX_FSCK is
selected, but as Carlos wrote, that should be a separate patch.
Quoted 2 lines
So for this to truly work, if systemd is selected, you should select util-linux's fsck, disable e2fsprogs fsck wrapper and enable e2fsck.
So in systemd/Config.in:
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_FSCK
select BR2_PACKAGE_E2FSPROGS_E2FSCK
although the latter is only relevant if there actually is an ext2 filesystem, I guess.
Quoted 38 lines
Note that in case of failure, systemd will try to run emergency.target and all kinds of things may happen if you haven't created some post-build or other scripts.
Quoted 33 lines
package/e2fsprogs/Config.in | 4 ++++ package/e2fsprogs/e2fsprogs.mk | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-)package/e2fsprogs/Config.in +4
-0@@ -59,8 +59,12 @@ config BR2_PACKAGE_E2FSPROGS_FILEFRAG config BR2_PACKAGE_E2FSPROGS_FSCK bool "fsck" + depends on !BR2_PACKAGE_UTIL_LINUX_FSCK default y +comment "the fsck from util-linux has preference over this one" + depends on BR2_PACKAGE_UTIL_LINUX_FSCK + config BR2_PACKAGE_E2FSPROGS_FUSE2FS bool "fuse2fs" depends on !BR2_STATIC_LIBS # libfusepackage/e2fsprogs/e2fsprogs.mk +1
-1@@ -11,7 +11,7 @@ E2FSPROGS_LICENSE = GPL-2.0, BSD-3-Clause (libuuid), MIT-like with advertising c E2FSPROGS_LICENSE_FILES = NOTICE lib/uuid/COPYING lib/ss/mit-sipb-copyright.h lib/et/internal.h E2FSPROGS_INSTALL_STAGING = YES E2FSPROGS_DEPENDENCIES = host-pkgconf util-linux -# we don't have a host-util-linux +# We don't need host-util-linux, since we disable libblkid, libuuid. HOST_E2FSPROGS_DEPENDENCIES = host-pkgconf
Quoted 6 lines
package/e2fsprogs/e2fsprogs.mk E2FSPROGS_CONF_OPTS = \ · line 27
Quoted 6 lines
package/e2fsprogs/e2fsprogs.mk +1
-0# e4defrag doesn't build on older systems like RHEL5.x, and we don't@@ -24,11 +24,11 @@ E2FSPROGS_CONF_OPTS = \ $(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),,--disable-debugfs) \ $(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),,--disable-imager) \ $(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),,--disable-defrag) \ + $(if $(BR2_PACKAGE_E2FSPROGS_FSCK),--enable-fsck,) \
Although the rest of the .mk file doesn't do this yet, the proper way is to
have both the --enable and --disable options, so let's do that here.
With that fixed I think it's good to go.
Quoted 16 lines
Quoted 16 lines
package/e2fsprogs/e2fsprogs.mk +0
-2$(if $(BR2_PACKAGE_E2FSPROGS_RESIZE2FS),,--disable-resizer) \ --disable-uuidd \ --disable-libblkid \ --disable-libuuid \ - --enable-fsck \ --disable-e2initrd-helper \ --disable-testio-debug \ --disable-rpath@@ -146,10 +146,16 @@ E2FSPROGS_DEPENDENCIES += busybox define E2FSPROGS_REMOVE_BUSYBOX_APPLETS $(RM) -f $(TARGET_DIR)/bin/chattr $(RM) -f $(TARGET_DIR)/bin/lsattr - $(RM) -f $(TARGET_DIR)/sbin/fsck $(RM) -f $(TARGET_DIR)/sbin/tune2fs $(RM) -f $(TARGET_DIR)/sbin/e2label endef
Quoted 8 lines
package/e2fsprogs/e2fsprogs.mk E2FSPROGS_DEPENDENCIES += busybox · line 157
Quoted 6 lines
package/e2fsprogs/e2fsprogs.mk +6
-0+ +ifeq ($(BR2_PACKAGE_E2FSPROGS_FSCK),y) +# We only build fsck if it's not selected in util-linux, so at this +# point /sbin/fsck must have come from busybox. +E2FSPROGS_REMOVE_BUSYBOX_APPLETS += $(RM) -f $(TARGET_DIR)/sbin/fsck +endifThis part doesn't work with systemd as you will remove the fsck wrapper from util-linux
No, read the command and the ifeq above: this will only be done ifBR2_PACKAGE_UTIL_LINUX_FSCK is NOT selected.
Regards,
Arnout
Quoted 14 lines
which is the only one that can be used. And
since e2fsprogs depends on util-linux, you are screwed :/.Quoted 7 lines
package/e2fsprogs/e2fsprogs.mk +1
-1+ E2FSPROGS_PRE_INSTALL_TARGET_HOOKS += E2FSPROGS_REMOVE_BUSYBOX_APPLETS endif --2.7.4
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF