Re: Trouble upgrading in a chroot -- no /dev
On Wed, 10 Feb 2010 20:01:25 -0500, Tom H wrote:
>> 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.
Thanks. Wouldn't doing it for /dev accomplish it for /dev/pts as well?
-- hendrik
Reply to: