[Buildroot] [PATCHv2] system: use system shell as root shell

Yann E. MORIN yann.morin.1998 at free.fr
Thu Aug 1 10:48:51 UTC 2019


From: Philip Molloy <philip.a.molloy at gmail.com>

Signed-off-by: Philip Molloy <philip.a.molloy at gmail.com>
[yann.morin.1998 at free.fr: use the sytem shell, not a new option,
 as suggested by Arnout]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
Cc: Arnout Vandecappelle <arnout at mind.be>

---
Changes v1 -> v2:
  - drop the new option, use the system shell
---
 package/skeleton-init-common/skeleton-init-common.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/skeleton-init-common/skeleton-init-common.mk b/package/skeleton-init-common/skeleton-init-common.mk
index e429b13d78..b4fb11b369 100644
--- a/package/skeleton-init-common/skeleton-init-common.mk
+++ b/package/skeleton-init-common/skeleton-init-common.mk
@@ -95,6 +95,8 @@ SKELETON_INIT_COMMON_TARGET_FINALIZE_HOOKS += SKELETON_INIT_COMMON_ADD_SH_TO_SHE
 ifneq ($(SKELETON_INIT_COMMON_BIN_SH),)
 define SKELETON_INIT_COMMON_SET_BIN_SH
 	ln -sf $(SKELETON_INIT_COMMON_BIN_SH) $(TARGET_DIR)/bin/sh
+	$(SED) '/^\root/s,:[^:]*$$,$(SKELETON_INIT_COMMON_BIN_SH),' \
+		$(TARGET_DIR)/etc/passwd
 endef
 endif
 endif
-- 
2.20.1



More information about the buildroot mailing list