From ffe9eaf3377222b76bafc7e7f49f499e5b5a65e6 Mon Sep 17 00:00:00 2001 From: Philip Molloy Date: Thu, 1 Aug 2019 12:48:51 +0200 Subject: [PATCH] system: directly use system shell as root shell Rather than through the /bin/sh symlink, because because invocating bash as sh causes bash to mimic sh (see INVOCATION in bash(1)). Signed-off-by: Philip Molloy [yann.morin.1998@free.fr: use the system shell, not a new option, as suggested by Arnout] [Peter: describe why this is done using the description from Philip's help text] Signed-off-by: Yann E. MORIN Cc: Arnout Vandecappelle Signed-off-by: Peter Korsgaard --- 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..4a67f51c19 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.30.2