From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 13 May 2024 15:23:19 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s6VeB-00CeuQ-2d for lore@lore.pengutronix.de; Mon, 13 May 2024 15:23:19 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1s6VeB-0008IP-45; Mon, 13 May 2024 15:23:19 +0200 Received: from smtp65.iad3a.emailsrvr.com ([173.203.187.65]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s6Vdp-0008I4-VV for ptxdist@pengutronix.de; Mon, 13 May 2024 15:22:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20221208-6x11dpa4; t=1715606576; bh=sXwObiwlIXQAC6VoeQXds2SaIf3siKUD4PSb21dTxVE=; h=From:To:Subject:Date:From; b=Wgm26QoPauu9j1qPVrB1RJv0TYVATmoTlzyqlgQJfSiGoJm8UNSZFX82D3cotsj6h PsFqlYl6UjJ37phxcVrK+hw73Lkcj1iyKwFZM9GaBlQhtXvGq9K0ir0RYPFav7NbgC j2V17m2UpGPlYvJ9RGlWAVbQdCdp0zNQUMk3PCIg= X-Auth-ID: abbotti@mev.co.uk Received: by smtp33.relay.iad3a.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id 16E615439 for ; Mon, 13 May 2024 09:22:55 -0400 (EDT) From: Ian Abbott To: ptxdist@pengutronix.de Date: Mon, 13 May 2024 13:55:04 +0100 Message-ID: <20240513132247.25521-1-abbotti@mev.co.uk> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Classification-ID: 1eebba18-7917-4316-985a-0dbc62ca213b-1-1 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.5 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 0/2] Change selection of /usr/bin/sh symlink X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false BusyBox, Dash, and Bash all allow installation of the /usr/bin/sh symbolic link to their respective executable, busybox, dash or bash. This patch series only allows Dash to install the /usr/bin/sh symlink if it is not installed by BusyBox (unless overridden by the ALLYES config option), and only allows Bash to install the /usr/bin/sh symlink if it is not installed by either BusyBox or Dash (unless overridden by the ALLYES config option). Bash is powerful but slow compared to BusyBox or Dash shells, so it is common to install a faster shell for executing shell scripts that typically use /bin/sh as the interpreter selected by their "shebang" line, and reserve Bash for use mostly as the interactive login shell. Patches: 1) dash: install /usr/bin/sh symlink by default if not provided by BusyBox 2) bash: allow installation of /usr/bin/sh symlink to be chosen manually rules/bash.in | 14 +++++++++++++- rules/dash.in | 5 +++++ 2 files changed, 18 insertions(+), 1 deletion(-)