View Single Post

   
  #6 (permalink)  
Old 02-19-2008, 11:51 AM
Menno Duursma
 
Posts: n/a
Default Re: installing in chroot

On Sat, 26 Jun 2004 19:54:08 -0500, /dev/rob0 wrote:
> On Sat, 26 Jun 2004 12:59:14 +0000, Menno Duursma wrote:
>> mount --bind /proc /boot/install/proc

>
> THIS was what I missed. I tried mounting inside the chroot.
>
>> chroot /boot/install /bin/bash sh --login

>
> Aha! But there's still a lot of cruft in the environment. I did
> unset PATH ;


No need for this, however if you where to want that done, in my example
execute it before the "chroot" instead.

> . /etc/profile


That is what the "--login" option does ...

> to at least get the $PATH right.


Again, no need.

> I found that you can't just cd to your directory and "chroot ."


Normally, on Linux, you can. Not for this though. Read no.

> I did "chroot . /bin/sh".


That isn't going to work, becouse BusyBox expects to be told how it
should act, as an argument - hence:

chroot /some/path /bin/bash sh --login

Might as well have been:

cd /some/path
chroot . /bin/busybox sh --login

>> # Here you might want to edit and exec: /etc/rc.d/rc.S
>> # In which case following command might not be needed/wanted
>> ./linuxrc

>
> Since you're not running the /sbin/init in the chroot this would have
> no effect.


Well, just try it out then ...

(FWIW: there are some symlinks being overwritten by rc.S which is
called from init. And that's probably realy needed, and stuff, idunno.)

>> HTH, and have fun.

>
> Ha, well, it might have!


Now you'll know how to go about this, should there ever be a next time ...

[ ... Install problems, you might want to report to Patrick . ]

> My custom 2.6.6 kernel had trouble, but not really, just that I chose
> not to enable hotplug. I'm ashamed to admit I was depending on that!


<AOL>
Yeah, me too, i'll just:
let hotplug figure it out
awk lsmod output into rc.modules
and disable it :-).
</AOL>

> Another thing, and this IS a real bug, is that udev overrides the
> /dev/mouse symlink as is set by mouseconfig, if you don't happen to be
> using /dev/psaux for the mouse.


Hey, thanks! ATM i'm using 2.4.x on this very machine still. But it does
have a (3-button Logitech) serial mouse installed. And i _was_ planning on
switching to 2.6.x now that i upgraded to the great Slackware 10 !

Cheers

--
-Menno.

Reply With Quote