whoami: cannot find username for UID 0

hackbard hackbard at hackdaworld.dyndns.org
Fri Oct 11 06:02:39 PDT 2002


hi

> > Only problem is that some programs
> > (sysvinit and util-linux) wont 'make install' because 'whoami' wont
> > return the username. Does anybody have any suggestions?

i used: alias whoami='echo "root"' as a dirty hack. already needed that for
sh-utils package (didnt reach sysvinit/util-linux by now) to also build and
install the su binary. i also had problems with netkit-base (which uses
install -o root) and had to copy over the libnss stuff to the chroot env for
that. how could you build these packages without such workarounds?

> Move the libnss files back. By the time you compile sysvinit and
> util-linux, you should already be running the chapter 6 bash, fileutils
> and sh-utils which are all compiled against the new glibc and hence should
> not segfault even with libnss in place.

if you want to extract the packages in chroot you also have to wait until tar
is recompiled as the static one will segfault too with libnss_{files,compat}*
in $LFS/lib.

regards, frank

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list