From: Carlos Santos <casantos@datacom.com.br>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] package: dropbear: make PATH configurable
Date: Mon, 17 Dec 2018 21:44:16 -0200 (BRST) [thread overview]
Message-ID: <533843879.18165671.1545090256285.JavaMail.zimbra@datacom.com.br> (raw)
In-Reply-To: <20181216152603.GD2384@scaer>
> From: "Yann Morin" <yann.morin.1998@free.fr>
> To: "Markus Mayer" <mmayer@broadcom.com>
> Cc: "buildroot" <buildroot@buildroot.org>
> Sent: Domingo, 16 de dezembro de 2018 13:26:03
> Subject: Re: [Buildroot] [PATCH v2] package: dropbear: make PATH configurable
> Markus, All,
>
> On 2018-03-09 14:41 -0800, Markus Mayer spake thusly:
>> Make the default PATH dropbear is using configurable.
>
> We've discussed this with Thomas, and as Carlos noticed, we woudl need a
> similar solution for openssh.
>
> But pushing the thing even further, we think a generic solution is even
> better:
>
> - in the "System configuration" sub-menu, add a new option that
> basically is "Default PATH" and defaults to /bin:/sbin:/usr/bin:/usr/sbin
Notice that /bin and /sbin are redundant with their /usr counterparts for
BR2_ROOTFS_MERGED_USR=y.
> - use that to set PATH in /etc/profile (from the skeleton-init-common
> package)
In one of my current projects there is a /etc/profile.d/path.sh file in a
rootfs overlay containing
#!/bin/sh
PATH="$(test -L /bin || echo /bin:)$(test -L /sbin || echo /sbin:)/usr/bin:/usr/sbin"
--
Carlos Santos (Casantos) - DATACOM, P&D
next prev parent reply other threads:[~2018-12-17 23:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-09 22:41 [Buildroot] [PATCH v2] package: dropbear: make PATH configurable Markus Mayer
2018-07-01 1:57 ` [Buildroot] [PATCH] " Carlos Santos
2018-12-16 15:26 ` [Buildroot] [PATCH v2] " Yann E. MORIN
[not found] ` <CAGt4E5v655G7xF0sXUx7gb9ecfDC6UE+Jbx8jEK1_roKzFNKng@mail.gmail.com>
2018-12-16 18:47 ` Yann E. MORIN
[not found] ` <CAGt4E5sQsXUYd-Aa6A7nHB7GnF18-MmRwve=JgDSUWwmP6WJyw@mail.gmail.com>
2018-12-17 21:33 ` Yann E. MORIN
2018-12-17 23:44 ` Carlos Santos [this message]
2018-12-18 19:51 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=533843879.18165671.1545090256285.JavaMail.zimbra@datacom.com.br \
--to=casantos@datacom.com.br \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox