Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129604 - genkernel is unable to find test utils in initrd
Summary: genkernel is unable to find test utils in initrd
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-11 10:18 UTC by HOSONO Hidetomo
Modified: 2006-06-09 06:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HOSONO Hidetomo 2006-04-11 10:18:42 UTC
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
Comment 1 SpanKY gentoo-dev 2006-04-11 10:50:39 UTC
no real information here

test/[ are bash builtins so baselayout works just fine without them
Comment 2 HOSONO Hidetomo 2006-05-05 02:58:56 UTC
> ------- 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
Comment 3 HOSONO Hidetomo 2006-05-05 08:17:31 UTC
(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
Comment 4 SpanKY gentoo-dev 2006-05-05 09:55:23 UTC
this has nothing to do with coreutils
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2006-05-07 10:54:13 UTC
So... what version of genkernel are you using? Try the latest version and see if that fixes the issue.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2006-06-09 06:32:44 UTC
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.