View Single Post

   
  #5 (permalink)  
Old 02-19-2008, 12:49 PM
/dev/rob0
 
Posts: n/a
Default Re: installing in chroot

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 ; . /etc/profile
to at least get the $PATH right. I found that you can't just cd to your
directory and "chroot ." I did "chroot . /bin/sh".

> # 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.

> HTH, and have fun.


Ha, well, it might have! Last night I decided to quit messing with
it and just get it done; I set up the initrd.img and 10.0 bare.i in
LILO and just ran a more typical setup. Choosing the "install from
pre-mounted directory" source option, I found a small bug in the
installer. I try to conserve keystrokes so I gave my directory a
single-letter name, which unfortunately was the same as one of the
series directory (it was "x".)

I got into the setup to the selection of series to install and the mode
of installation (these days I'm lazy; I always choose "full".) When it
started installing packages, it installed "x" first, followed by "x",
and again by "x" until I hit Ctrl-C. I am guessing that the first path
element being the same as that series directory is what confused it.

So I had to try again before I could get a clean 10 installed. And bit
by bit I copied over all my junk such that it's no longer a clean
install.

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!

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.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

Reply With Quote