[Buildroot] [git commit branch/2019.11.x] busybox: don't overwrite existing inittab

Peter Korsgaard peter at korsgaard.com
Sun Dec 22 20:13:41 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=d1f7d4078bbf7be7b0eb94bb091a06a5b5273462
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.11.x

If a inittab file was already provided in the skeleton, don't overwrite
it with the one that comes with the busybox package.

Signed-off-by: Paul Cercueil <paul at crapouillou.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 10c7610bb9bd57c34feedf9856777e067cd93347)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/busybox/busybox.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index 301e72bdd2..6283bc96ea 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -277,7 +277,9 @@ endif
 
 ifeq ($(BR2_INIT_BUSYBOX),y)
 define BUSYBOX_INSTALL_INITTAB
-	$(INSTALL) -D -m 0644 package/busybox/inittab $(TARGET_DIR)/etc/inittab
+	if test ! -e $(TARGET_DIR)/etc/inittab; then \
+		$(INSTALL) -D -m 0644 package/busybox/inittab $(TARGET_DIR)/etc/inittab; \
+	fi
 endef
 endif
 


More information about the buildroot mailing list