[Buildroot] [PATCHv2 proposal/next 2/3] build: replace host-mkpasswd with host-busybox

Stefan Becker chemobejk at gmail.com
Fri Jun 8 11:40:10 UTC 2018


Hi Arnout, All,

On Fri, Jun 8, 2018 at 12:29 AM Arnout Vandecappelle <arnout at mind.be> wrote:
>
>  So, not whois, not busybox, not openssl... What about python, which we anyway
> require to be installed on the host? I remember that someone has posted a
> one-liner that would do the job :-P

Because a python one-liner is not enough. F.ex. from support/scripts/mkuser:

   # Encode a password
   encode_password() {
       local passwd="${1}"

       mkpasswd -m "${PASSWD_METHOD}" "${passwd}"
   }

i.e. you need at least a python script with mkpasswd-compatible
command line parameters.

Regards, Stefan



More information about the buildroot mailing list