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

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



> I upgrade inside the chroot so the unupgraded system can go on serving my
> users while the upgrade happens.

> This time I encountered a new problem:

> dpkg-preconfigure: unable to open stdin

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

Before chroot
mount -o bind /dev /mountpoint/dev

I usually do the same with /sys, /proc, and /dev/pts.


Reply to: