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

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



In <[🔎] hkvtq7$eup$1@ger.gmane.org>, Hendrik Boom wrote:
>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.
>>>
>>> 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?
>>
>> 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?

Only if you use the "rbind" option instead of the "bind" option.
-- 
Boyd Stephen Smith Jr.                   ,= ,-_-. =.
bss@iguanasuicide.net                   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
http://iguanasuicide.net/                    \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: