If /usr is separated from /, the Gentoo Linux startup scripts don't work correctly. The command, test and [ should not be on /usr/bin (If /usr is separated from /, test and [ are called before mounting other filesystems) but be on /. Here is the diff; --- /var/portage/sys-apps/coreutils/coreutils-5.94-r2.ebuild 2006-04-11 09:59:02.000000000 +0900 +++ /home/portage/sys-apps/coreutils/coreutils-5.94-r2.ebuild 2006-04-12 02:00:51.000000000 +0900 @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-5.94-r2.ebuild,v 1.1 2006/04/11 00:59:02 vapier Exp $ +# $Header: /home/portage/sys-apps/coreutils/RCS/coreutils-5.94-r2.ebuild,v 1.1 2006/04/11 14:39:24 h12o Exp $ inherit eutils flag-o-matic toolchain-funcs @@ -137,7 +137,7 @@ dodir /usr/bin mv bin/{csplit,expand,factor,fmt,fold,join,md5sum,nl,od} usr/bin mv bin/{paste,pathchk,pinky,pr,printf,sha1sum,shred,sum,tac} usr/bin - mv bin/{tail,test,[,tsort,unexpand,users} usr/bin + mv bin/{tail,tsort,unexpand,users} usr/bin cd bin local x for x in * ; do
no real information here test/[ are bash builtins so baselayout works just fine without them
> ------- Comment #1 from vapier@gentoo.org 2006-04-11 10:50 PST ------- > no real information here > > test/[ are bash builtins so baselayout works just fine without them Thank you for your comment and I am sorry because of no real information and my lately reply. When I use an initial ramdisk and set the option "init=/linuxrc", /bin/sh runs /linuxrc in the ramdisk. test/[ are not builtin for the shells in the ramdisk. So after remounting /, /usr/bin/{test,[} have been disappeared and an error has been occured. Sorry, I don't know how to get the screen capture when running /linuxrc in the ramdisk... But I found the message: >> Booting/linuxrc: 762: [: not found If you uncompress /boot/initrd-genkernel-*, mount and execute ${INITRD_ROOT}/bin/sh, you can see the message (INITRD_ROOT=/var/tmp/initrd) h12o@filette:~$ /var/tmp/initrd/bin/sh BusyBox v1.00 (2005.07.21-10:20+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ type [ [ is /usr/bin/[ ~ $ type test test is /usr/bin/test ~ $ which [ /usr/bin/[ ~ $ which test /usr/bin/test ~ $ -- h12o
(Let me try again, ...) > ------- Comment #1 from vapier@gentoo.org 2006-04-11 10:50 PST ------- > no real information here > > test/[ are bash builtins so baselayout works just fine without them Thank you for your comment and I am sorry because of no real information and my lately reply (and lacking of all the linefeed... orz). When I use an initial ramdisk and set the option "init=/linuxrc", /bin/sh runs /linuxrc in the ramdisk. test/[ are not builtin for the shells in the ramdisk. So after remounting /, /usr/bin/{test,[} have been disappeared and an error has been occured. Sorry, I don't know how to get the screen capture when running /linuxrc in the ramdisk... But I found the message: >> Booting/linuxrc: 762: [: not found If you uncompress /boot/initrd-genkernel-*, mount and execute ${INITRD_ROOT}/bin/sh, you can see the message (INITRD_ROOT=/var/tmp/initrd) h12o@filette:~$ /var/tmp/initrd/bin/sh BusyBox v1.00 (2005.07.21-10:20+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ type [ [ is /usr/bin/[ ~ $ type test test is /usr/bin/test ~ $ which [ /usr/bin/[ ~ $ which test /usr/bin/test ~ $ -- h12o
this has nothing to do with coreutils
So... what version of genkernel are you using? Try the latest version and see if that fixes the issue.
I cannot reproduce this, as the initrd/initramfs shouldn't make a difference on the installed system. Feel free to REOPEN this after doing the testing Tim suggested if you still have a problem.