Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9873 Discussions

getent missing in Yocto Linux Image?

idata
Community Manager
1,437 Views

As I was testing out some bash scripts on the Intel Edison, I noticed that the standard GNU http://linux.die.net/man/1/getent getent command is missing. This is usually presumed to exist by a lot of shell scripts I've encountered, and is generally a part of the base OS install for most popular Linux distros. This tool is usually part of the standard install of glibc binary utilities, such as http://pkgs.org/centos-7/centos-x86_64/glibc-common-2.17-105.el7.x86_64.rpm.html glibc-common (RHEL), or http://pkgs.org/ubuntu-14.04/ubuntu-main-amd64/libc-bin_2.19-0ubuntu6_amd64.deb.html libc-bin (Debian/Ubuntu) packages, but I notice that a similar package appears to be missing from any opkg repos (both the standard "http://iotdk.intel.com/repos/1.1/intelgalactic iotkit", as well as http://intel.ly/1ABugVK including @AlexT_Intel 's http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html opkg repos here).

 

It does appear that the libc6 package includes libnss, and base-files includes /etc/nsswitch.conf which getent depends on for listing users, groups etc... and google turns up at least one https://git.congatec.com/yocto/poky/blame/2e7dd298b17446708fa77a80e6ed2460ed98b059/meta/recipes-core... yocto / poky repo that mentions it., as well as another mention of an embedded opkg-based distro: http://unix.stackexchange.com/q/93278/7688 software installation - getent missing in Ångström Linux - Unix & Linux Stack Exchange

 

Has anyone had any luck compiling, packaging, or otherwise putting getent onto the Intel Edison's Yocto image? Also any resources or starter guide for getting the buildroot environment setup & packaging instructions would be great!

 

1 Solution
asss
Valued Contributor II
448 Views

Hi,

it is possible to add getent to Edison's image.

Just add a package "glibc-utils" to IMAGE_INSTALL_append in local.conf file.

BR,

xbolshe

View solution in original post

1 Reply
asss
Valued Contributor II
449 Views

Hi,

it is possible to add getent to Edison's image.

Just add a package "glibc-utils" to IMAGE_INSTALL_append in local.conf file.

BR,

xbolshe

Reply