Community
cancel
Showing results for 
Search instead for 
Did you mean: 
idata
Community Manager
1,188 Views

getent missing in Yocto Linux Image?

Jump to solution

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!

 


Accepted Solutions
asss
Valued Contributor II
199 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
200 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