From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 13 May 2024 08:29:58 +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 1s6PCA-00CBDx-2W for lore@lore.pengutronix.de; Mon, 13 May 2024 08:29:58 +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 1s6PCA-0002xi-2K; Mon, 13 May 2024 08:29:58 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s6PBr-0002xZ-04; Mon, 13 May 2024 08:29:39 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6PBq-0017PP-HS; Mon, 13 May 2024 08:29:38 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1s6PBq-001ebd-1a; Mon, 13 May 2024 08:29:38 +0200 Date: Mon, 13 May 2024 08:29:38 +0200 From: Michael Olbrich To: Ian Abbott Message-ID: Mail-Followup-To: Ian Abbott , ptxdist References: <3f9ca817-92d7-4e8a-84c5-9756f3197afc@mev.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f9ca817-92d7-4e8a-84c5-9756f3197afc@mev.co.uk> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] /bin/sh link setting incompatibility when bash and dash installed 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 Cc: ptxdist 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 On Wed, Apr 24, 2024 at 03:49:06PM +0100, Ian Abbott wrote: > Hi, > > Currently, the Kconfig option for BASH_SH (which causes /usr/bin/sh to be > linked to bash) is as follows: > > config BASH_SH > bool > default BUSYBOX = n || BUSYBOX_SH_IS_NONE > > However, if DASH_LINK_SH is enabled, that will cause /usr/bin/sh to be > linked to dash, resulting in a conflict. > > I suppose the most robust fix would be to add a prompt to allow BASH_SH to > be configured manually. I'm not sure if the default should be changed to > `default (BUSYBOX = n || BUSYBOX_SH_IS_NONE) && DASH_LINK_SH = n`. If both > dash and bash are installed, it is likely that dash would be used as the > system shell and bash would be used as the interactive shell. Imho, having both bash and dash only makes sense if /bin/sh is dash. So I think changing the default as suggested above is the correct fix. Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |