Re: udev notes
Benjamin Schieder <blindcoder-1k+CIuW/[email protected]> Mon, 6 Feb 2006 12:06:01 +0100
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Feb 06, 2006 at 09:36:46AM +0100, Andreas V. Meier wrote:
> On Sun, Feb 05, 2006 at 10:21:37PM +0100, Benjamin Schieder wrote:
> > Alan J. Wylie wrote:
> > > 1) udevstart is no longer in udev 084
> > >
>
> > What about creating a script called 'udevstart' that does exactly this? I would
> > need this because currently udev doesn't set users and group permissions from
> > within the initrd, no idea why. /etc/{passwd,group} are there.
>
> With my changes to the rockinitrd it does. Unfortunately I had massive
> problems creating a patch due to submaster :(
> I hope I will have time for this this week.
> If you want to do it, my changes (iirc) were:
> 1. add to included dirs: /etc/udev, /etc/hotplug{,.d}, /lib/udev
> 2. change in linuxrc: where there is the call to udevstart: put
> 'echo "" > /proc/sys/kernel/hotplug; /sbin/udevd --daemon' before it.
> 3. replace udevstart with something like
> while read uevent; do echo 1 > $uevent; done < <(find /sys -name uevent)
> and maybe some udev-queue waiting, but I just put there a sleep 2.
>
> The main point of udevstart was to synthesize events for devices
> already present in kernel, so the started udevd can receive them and
> create device nodes. Your missing permissions are probably caused by
> missing udev rules on the initrd.
The rules are there (I just copy the entire /etc/udev dir) and it works when
I manually call udevstart after the system is up and running. The permissions
are set correctly, but not the group.
> > > 5) With udev, /dev/misc/microcode is instead at /dev/cpu/microcode.
> > >
> > > The patch file package/x86/microcode_ctl/devfs.patch is not
> > > applicable to udev based systems.
> > >
> > > Create a compatibility symlink in a udev rule perhaps?
> >
> > Do other programs but microcode_ctl depend on /dev/misc/microcode? Otherwise
> > change that package to use /dev/cpu/microcode and be done with it.
> It's the chicken-egg problem. If we change it in microcode, it will
> not work with plain /dev anymore. I think a rule would be best
> solution, as it is caused by udev.
Okay, let's do it that way.
Greetings,
Benjamin
--
#!/bin/sh #!/bin/bash #!/bin/tcsh #!/bin/csh #!/bin/kiss #!/bin/ksh
#!/bin/pdksh #!/usr/bin/perl #!/usr/bin/python #!/bin/zsh #!/bin/ash
Feel at home? Got some of them? Want to show some magic?
http://shellscripts.org
_______________________________________________
rock-devel mailing list
[email protected]
http://www.rocklinux.net/mailman/listinfo/rock-devel
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFD5y2Zr0OTeImXvg8RArjZAKCK47Au/7rPgYVxY/vxMlYRBgY5ZgCgg1qv orJZEtVH5uLQALiBd74SBro= =h0Ij -----END PGP SIGNATURE-----