* Re: udev on Fedore 5 - Gentoo script not very helpfull in LFS
2006-08-04 7:56 udev on Fedore 5 - Gentoo script not very helpfull in LFS Piet Delaney
@ 2006-08-04 15:12 ` Dan Nicholson
2006-08-04 16:48 ` Greg KH
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Dan Nicholson @ 2006-08-04 15:12 UTC (permalink / raw)
To: linux-hotplug
On 8/4/06, Piet Delaney <piet@bluelane.com> wrote:
>
> I'm starting to lean towards just waiting till we have Linux From
> Scratch (LFS) 6.2 working and then switching to the new event mechanism.
> It's about to be released and supported the new 2.6.16 kernel and the
> new udev-096. Perhaps I can extract 6.2 udev scripts part of
> 6.2 without too much work and supports pre 2.6.16 kernels; I suspect
> not.
6.2 is out now. Here's the book and the bootscripts directly.
http://www.linuxfromscratch.org/lfs/view/stable/
http://wiki.linuxfromscratch.org/lfs/browser/tags/6.2/bootscripts/lfs/init.d/udev?revw62
http://wiki.linuxfromscratch.org/lfs/browser/tags/6.2/bootscripts/lfs/init.d/udev_retry?revw62
They are installed as S10udev and S45udev_retry. No attempt at
backwards compatibility with earlier kernels or udev is attempted.
We're assuming you followed the LFS book and are using the packages
mentioned there. I believe it would work with kernels back to 2.6.15,
but I don't know.
--
Dan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: udev on Fedore 5 - Gentoo script not very helpfull in LFS
2006-08-04 7:56 udev on Fedore 5 - Gentoo script not very helpfull in LFS Piet Delaney
2006-08-04 15:12 ` Dan Nicholson
@ 2006-08-04 16:48 ` Greg KH
2006-08-04 23:55 ` Piet Delaney
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2006-08-04 16:48 UTC (permalink / raw)
To: linux-hotplug
On Fri, Aug 04, 2006 at 12:56:12AM -0700, Piet Delaney wrote:
> I get the impression that the udev code and associated scripts haven't
> been designed for backward compatibility. Perhaps I'm wrong, I only
> spent a day or two on it, but that's my initial impesssion. I get the
> impression from the news groups that better clarity in the environment
> would be greatly appreciated my many.
They are backwards compatible with older kernels, not older versions of
udev (as the startup script comes along with the version of udev you are
installing on Gentoo.)
And yes, I'd agree that you just stick with the LFS stuff, as that's the
system you are using :)
thanks,
greg k-h
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: udev on Fedore 5 - Gentoo script not very helpfull in LFS
2006-08-04 7:56 udev on Fedore 5 - Gentoo script not very helpfull in LFS Piet Delaney
2006-08-04 15:12 ` Dan Nicholson
2006-08-04 16:48 ` Greg KH
@ 2006-08-04 23:55 ` Piet Delaney
2006-08-05 0:13 ` Dan Nicholson
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Piet Delaney @ 2006-08-04 23:55 UTC (permalink / raw)
To: linux-hotplug
On Fri, 2006-08-04 at 08:12 -0700, Dan Nicholson wrote:
> On 8/4/06, Piet Delaney <piet@bluelane.com> wrote:
> >
> > I'm starting to lean towards just waiting till we have Linux From
> > Scratch (LFS) 6.2 working and then switching to the new event mechanism.
> > It's about to be released and supported the new 2.6.16 kernel and the
> > new udev-096. Perhaps I can extract 6.2 udev scripts part of
> > 6.2 without too much work and supports pre 2.6.16 kernels; I suspect
> > not.
>
> 6.2 is out now. Here's the book and the bootscripts directly.
>
> http://www.linuxfromscratch.org/lfs/view/stable/
> http://wiki.linuxfromscratch.org/lfs/browser/tags/6.2/bootscripts/lfs/init.d/udev?revw62
> http://wiki.linuxfromscratch.org/lfs/browser/tags/6.2/bootscripts/lfs/init.d/udev_retry?revw62
>
> They are installed as S10udev and S45udev_retry. No attempt at
> backwards compatibility with earlier kernels or udev is attempted.
> We're assuming you followed the LFS book and are using the packages
> mentioned there. I believe it would work with kernels back to 2.6.15,
> but I don't know.
Hi Dan:
I'm Having better luck with udev-056, MUCH faster with 2.6.13 kernel
than udev-030. Majors and Minors are identical. Permissions are
derived from the Original udev permissions and likely the original
LFS permissions.
Is it difficult to get the original LFS permissions for various releases
easily? For now I'll just use our existing LFS permissions from way
back in 6.1 (or perhaps even earlier). I tried browsing the src and
using wiki.linuxfromscratch.org but didn't easily find it.
-piet
>
> --
> Dan
--
Piet Delaney
BlueLane Teck
W: (408) 200-5256; piet@bluelane.com
H: (408) 243-8872; piet@piet.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: udev on Fedore 5 - Gentoo script not very helpfull in LFS
2006-08-04 7:56 udev on Fedore 5 - Gentoo script not very helpfull in LFS Piet Delaney
` (2 preceding siblings ...)
2006-08-04 23:55 ` Piet Delaney
@ 2006-08-05 0:13 ` Dan Nicholson
2006-08-05 3:37 ` Piet Delaney
2006-08-05 19:22 ` Dan Nicholson
5 siblings, 0 replies; 7+ messages in thread
From: Dan Nicholson @ 2006-08-05 0:13 UTC (permalink / raw)
To: linux-hotplug
On 8/4/06, Piet Delaney <piet@bluelane.com> wrote:
> On Fri, 2006-08-04 at 08:12 -0700, Dan Nicholson wrote:
> >
> > 6.2 is out now. Here's the book and the bootscripts directly.
> >
> > http://www.linuxfromscratch.org/lfs/view/stable/
> > http://wiki.linuxfromscratch.org/lfs/browser/tags/6.2/bootscripts/lfs/init.d/udev?revw62
> > http://wiki.linuxfromscratch.org/lfs/browser/tags/6.2/bootscripts/lfs/init.d/udev_retry?revw62
>
> I'm Having better luck with udev-056, MUCH faster with 2.6.13 kernel
> than udev-030. Majors and Minors are identical. Permissions are
> derived from the Original udev permissions and likely the original
> LFS permissions.
By permissions I assume you mean the rules files. The udev rules have
jumped around a bit. They've only come under version control in the
past few months. Here's the rules and bootscripts from 6.1.1, which
used udev-056 and linux-2.6.12.
http://downloads.linuxfromscratch.org/udev-config-4.rules
http://downloads.linuxfromscratch.org/lfs-bootscripts-3.2.1.tar.bz2
I think you can also safely update to udev-071 with the same setup.
Read the NEWS and README in udev. It's noted when things become
incompatible such as kernel version needed, or a tool going away, like
udevstart.
--
Dan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: udev on Fedore 5 - Gentoo script not very helpfull in LFS
2006-08-04 7:56 udev on Fedore 5 - Gentoo script not very helpfull in LFS Piet Delaney
` (3 preceding siblings ...)
2006-08-05 0:13 ` Dan Nicholson
@ 2006-08-05 3:37 ` Piet Delaney
2006-08-05 19:22 ` Dan Nicholson
5 siblings, 0 replies; 7+ messages in thread
From: Piet Delaney @ 2006-08-05 3:37 UTC (permalink / raw)
To: linux-hotplug
On Fri, 2006-08-04 at 17:13 -0700, Dan Nicholson wrote:
Hi Dan:
> On 8/4/06, Piet Delaney <piet@bluelane.com> wrote:
> > On Fri, 2006-08-04 at 08:12 -0700, Dan Nicholson wrote:
> > >
> > > 6.2 is out now. Here's the book and the bootscripts directly.
> > >
> > > http://www.linuxfromscratch.org/lfs/view/stable/
> > > http://wiki.linuxfromscratch.org/lfs/browser/tags/6.2/bootscripts/lfs/init.d/udev?revw62
> > > http://wiki.linuxfromscratch.org/lfs/browser/tags/6.2/bootscripts/lfs/init.d/udev_retry?revw62
> >
> > I'm Having better luck with udev-056, MUCH faster with 2.6.13 kernel
> > than udev-030. Majors and Minors are identical. Permissions are
> > derived from the Original udev permissions and likely the original
> > LFS permissions.
>
> By permissions I assume you mean the rules files.
Well..., yes. It seems between 030 and 056 the permissions directory
support was dropped yet lots of examples existed and it appears to
parse it in the log so it's hidden in the noise that the changing
of permissions is now done in the rules files. Even the udev
Change log doesn't indicate this.
> The udev rules have
> jumped around a bit. They've only come under version control in the
> past few months. Here's the rules and bootscripts from 6.1.1, which
> used udev-056 and linux-2.6.12.
>
> http://downloads.linuxfromscratch.org/udev-config-4.rules
> http://downloads.linuxfromscratch.org/lfs-bootscripts-3.2.1.tar.bz2
Thanks. I've been using the udev-config-4.rules and it bring us closer
to our previous permissions. It seems there was yet another undocumented
change. The config files:
# default_mode - set the default mode for all nodes that have no
# explicit match in the permissions file
default_mode="0600"
is no longer supported. The Change log only indicates it's being
supported way back when udev started to exist. So many permissions
with your LFS udev-config-4.rules still leave difference from our
previous environment. Many appear to be a consistent difference between
default permissions. Many of our files have permissions 600 and are
now coming up 660. I think this is likely because default_mode="0600"
is now ignored in the config file.
Might be best to try two versions of udev-config-4.rules, one with the
way they exist in the 6.1.1 release and another that beings us closer
to the permissions we are using from 6.1 (or earlier).
Any thoughts on that. You may be in a great position to know which
environment be best. Using the stock udev-config-4.rules from 6.1.1
would likely make future migration to 6.2 easier. Modifying the
udev-config-4.rules to give the same permissions we use now with
6.1 would likely minimize risk of our appliance behavior changing.
I haven't seen anything in your /lfs-bootscripts-3.2.1.tar that
changes files modes in /dev.
-piet
>
> I think you can also safely update to udev-071 with the same setup.
> Read the NEWS and README in udev. It's noted when things become
> incompatible such as kernel version needed, or a tool going away, like
> udevstart.
>
> --
> Dan
--
Piet Delaney
BlueLane Teck
W: (408) 200-5256; piet@bluelane.com
H: (408) 243-8872; piet@piet.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: udev on Fedore 5 - Gentoo script not very helpfull in LFS
2006-08-04 7:56 udev on Fedore 5 - Gentoo script not very helpfull in LFS Piet Delaney
` (4 preceding siblings ...)
2006-08-05 3:37 ` Piet Delaney
@ 2006-08-05 19:22 ` Dan Nicholson
5 siblings, 0 replies; 7+ messages in thread
From: Dan Nicholson @ 2006-08-05 19:22 UTC (permalink / raw)
To: linux-hotplug
On 8/4/06, Piet Delaney <piet@bluelane.com> wrote:
>
> Thanks. I've been using the udev-config-4.rules and it bring us closer
> to our previous permissions. It seems there was yet another undocumented
> change. The config files:
>
> # default_mode - set the default mode for all nodes that have no
> # explicit match in the permissions file
> default_mode="0600"
>
> is no longer supported. The Change log only indicates it's being
> supported way back when udev started to exist. So many permissions
> with your LFS udev-config-4.rules still leave difference from our
> previous environment. Many appear to be a consistent difference between
> default permissions. Many of our files have permissions 600 and are
> now coming up 660. I think this is likely because default_mode="0600"
> is now ignored in the config file.
Mode 660 isn't really a big deal since the default group is root.
Unless you have a bunch of users in the root group, then it's not an
issue.
You can add this rule, though, which is used by redhat:
KERNEL="*", OWNER="root" GROUP="root", MODE="0600"
> Any thoughts on that. You may be in a great position to know which
> environment be best. Using the stock udev-config-4.rules from 6.1.1
> would likely make future migration to 6.2 easier. Modifying the
> udev-config-4.rules to give the same permissions we use now with
> 6.1 would likely minimize risk of our appliance behavior changing.
It could help, but in between that rule set and what's used in 6.2, a
lot changed in udev. There are more specialized rules needed for
handling sysfs, modprobe, scsi and firmware. Here's the link for the
development of our rules.
http://wiki.linuxfromscratch.org/lfs/browser/trunk/udev-config
Also, look at the rules that are shipped in the udev tarball. The suse
and redhat rules I'm fairly certain are used by those distros.
> I haven't seen anything in your /lfs-bootscripts-3.2.1.tar that
> changes files modes in /dev.
No, only the udev script is important for your case. You need to get
udevd running, tell the kernel what's going to handle events, and
handle coldplugging all your devices. This has changed over the
lifetime of udev, so be careful.
--
Dan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread