Port-xen archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ec2 amis
On Wed, Mar 02, 2011 at 11:22:03PM +0100, Jean-Yves Migeon wrote:
> On 02.03.2011 22:54, Thor Lancelot Simon wrote:
> > On Wed, Mar 02, 2011 at 08:50:38PM +0100, Jean-Yves Migeon wrote:
> >>
> >> Borked pkg_add. I chroot()ed in the partition for 5.1, and executed a
> >> pkg_add bluntly, which creates /dev/null through a pipe redirection.
> >> Will fix that for other regions too.
> >
> > But why wasn't /dev populated? Or did you run MAKEDEV after?
>
> Yep, the tar file is missing the /dev content
I don't think it's "missing". It is intentional that none of the tar files
contain the contents of /dev, because extracting the tar file on a
system with an incompatible interpretation of the device major and minor
numbers would give a result potentially much more harmful than an
empty /dev. So running MAKEDEV *on a NetBSD system of the right
architecture* after extracting the tar file is an important thing to do.
> This is somewhat mitigated by init(8), as it executes MAKEDEV if
> /dev/console is missing (IIRC). But MAKEDEV won't overwrite a node if it
> is already present, and given that /dev/null is...
Also, this way you don't get persistent device permissions.
Thor
Home |
Main Index |
Thread Index |
Old Index