[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trouble upgrading in a chroot -- no /dev



On Wed, Feb 10, 2010 at 7:28 PM, Hendrik Boom <hendrik@topoi.pooq.com> wrote:
[snip]
> Now I presume this is because /dev is absent from the chroot and it's
> trying to use /dev/fd/0 -- the device that acts like stdin.  What do I do
> to set things up so that I have a valid /dev?  The /dev outside the
> chroot is set up by udev.  Is there some way of mounting it from inside
> the chroot?

I've read somewhere that udev is able to work from within a chroot,
which is why you need to bind or rbind mount it as suggested above.

>Is there some way of duplicate-mounting it from outside so
> it's visible inside?  And there are probably similar problems with /proc,
> though I haven't hit them yet.

Since you're doing this regularly, take a look at schroot which helps
manage chroots including mounting and unmounting /dev, /home/ etc.

http://delicious.com/tag/schroot


Reply to: