From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1I4yYu-0006Bf-PX for garchives@archives.gentoo.org; Sun, 01 Jul 2007 12:29:57 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l61CS8bt031417; Sun, 1 Jul 2007 12:28:08 GMT Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l61CS7eE031411 for ; Sun, 1 Jul 2007 12:28:07 GMT Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I4yWz-0001Kp-Ca for gentoo-amd64@lists.gentoo.org; Sun, 01 Jul 2007 14:27:57 +0200 Received: from ip68-230-67-77.ph.ph.cox.net ([68.230.67.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Jul 2007 14:27:57 +0200 Received: from 1i5t5.duncan by ip68-230-67-77.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Jul 2007 14:27:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-amd64@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-amd64] Re: having trouble running root off raid Date: Sun, 1 Jul 2007 12:27:52 +0000 (UTC) Message-ID: References: <46870C62.4010705@thefreemanclan.net> <46871776.7020704@thefreemanclan.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip68-230-67-77.ph.ph.cox.net User-Agent: Pan/0.131 (Ghosts: First Variation) Sender: news X-Archives-Salt: 7353200e-dbb8-41fd-977d-e8359ad84ef2 X-Archives-Hash: 8fc5afd61f1003a192aaba689f56f0d9 Richard Freeman posted 46871776.7020704@thefreemanclan.net, excerpted below, on Sat, 30 Jun 2007 22:54:46 -0400: > It turns out it wasn't obvious, but I was missing all my device nodes in > /dev. Apparently even with udev you need some stuff in there to get > started. OK, I see you've got it all working now, but FWIW... Yes, there two specific device nodes that Gentoo's initscripts need before udev is setup. However, with a newer baselayout, it should work without them, you'll just not be able to see if anything's going wrong in that section since there's no /dev/console to write to. (/dev/null is the other required device node.) Actually, that's probably what was going on... the problem below (udev not loading) wasn't showing up, because there wasn't a /dev/console to write the error to. So... sounds like you put all your device nodes in the rootfs /dev. You can leave it that way if you wish, or remove all the devices except for /dev/console and /dev/null. That's the way I'm running here, just those two on the rootfs. For the official word, see the Gentoo udev guide. It's listed in the big Gentoo docs list, here: http://www.gentoo.org/doc/en/list.xml . > However, I'm still getting stuck. Now I get an error from rc telling me > that the system doesn't support UDEV. I'm using the EXACT same kernel > as the one that works fine on a different root. Not quite sure what the > problem is... I see from your later reply that it was a missing /lib -> /lib64 symlink. Yes, that's required. /lib64 has the 64-bit libraries in it, but /lib contains way more than just binary libraries. Among other things, it's also the traditional location for non-binary system utility scripts. Those designed to be run directly by the user/sysadmin are generally in /bin and /sbin (and of course the initscripts in /etc/ init.d, symlinked in /etc/runlevels), while those normally only called by other scripts, not designed to be run directly, are normally located in / lib. Since they aren't actually binaries, they are bitness and arch neutral, and are thus normally located in /lib, regardless of the arch. FWIW, I ran into this one myself when I switched from multilib to 64-bit only. I tried running separate /lib and /lib64 dirs, no symlink. If it worked perfectly as explained above, that should have worked. However, there's at least one place in baselayout where something placed specifically in lib64 by the package installation, is then invoked specifically from lib (not 64). Strictly speaking, that's broken, since the path should be consistent, one or the other, not placed in one and then invoked as if it's in the other, but I wasn't worried about it enough to file a bug on it. I just moved everything from lib back under lib64, and recreated the symlink. > Oh, and line 329 of /sbin/rc calls clear, which is in /usr/bin. Not > that it causes much trouble... Now /that's/ something that should be bugged. There's a decently strict policy not to put stuff in /usr that's needed before /usr may be mounted, since it's relatively common to have /usr on a separate partition. This breaks that policy, so it should be bugged. They need to either avoid using clear, or move clear to /bin. (If there are packages that call it using the absolute /usr/bin/clear, place a symlink -> /bin/clear there. That's not a problem. What /is/ a problem is calling it from a script that's run before /usr may be mounted. In this case it's not fatal, but it's a policy issue that needs corrected none-the-less.) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- gentoo-amd64@gentoo.org mailing list