Re: udev still stinks
Benjamin Schieder <blindcoder-1k+CIuW/[email protected]> Tue, 14 Mar 2006 12:25:45 +0100
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
On 14.03.2006 11:48:08, Tobias Hintze wrote:
> On Tue, Mar 14, 2006 at 11:11:33AM +0100, Benjamin Schieder wrote:
> [...]
> > > >
> > > > mount --bind works for me.
> > >
> > > i think that's by far the worst solution.
> > >
> > > quoting from udev/README:
> > > =================
> > > - It is recommended to use the /lib/udev/devices directory to place
> > > device nodes and symlinks in, which are copied to /dev at every boot.
> > > That way, nodes for broken subsystems or devices which can't be
> > > detected automatically by the kernel, will always be available.
> > > =================
> > >
> > > that should always be the way how we create or /dev/fd -> /proc/self/fd
> > > symlink.
> >
> > Yes, but that's not the problem we're talking about here.
> > The problem here is the chroot after installation. So:
> > Boot CD -> partition harddisk -> install gems -> a bit of magic ->
> > -> chroot into installed system -> some more magic
> > ^^^
> > This has nothing to do with /lib/udev/devices
> >
>
> oh yes it has!
> chrooting into that installed system is like booting into the system.
> so instead of bind-mounting one should mount tmpfs and copy from
> /lib/udev/devices.
> that way you get exactly what you would get when booting.
NAK.
/lib/udev/devices should NOT contain a complete /dev directory but only stuff
that 'needs to be there' like console zero null fd -> /proc/self/fd and
similiar nodes.
But you still might need to have /dev/discs/* to setup filesystem encryption
for example.
That's why we need to either bind mount or do something like this:
killall udevd
chroot
cp -r /lib/udev/devices /dev
udevd --daemon
find /sys -name uevent | while read u ; do
echo 1 > ${u}
done
Actually, I prefer the bind mount.
Greetings,
Benjamin
--
Go away, or I will replace you with a very small shellscript!
http://shellscripts.org/
_______________________________________________
rock-devel mailing list
[email protected]
http://www.rocklinux.net/mailman/listinfo/rock-devel
signature.asc
(application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEFqg5r0OTeImXvg8RAsWfAJ91j4I5m0AyZkwxHb3HZCOGhX+2aQCgtdtE 6fMydm3SQxnEuOeKR0H54fs= =H69Z -----END PGP SIGNATURE-----