Re: persistent CD symlinks

2006-05-14 Thread Jeremy Huntwork
Alexander E. Patrakov wrote: +1, because I don't believe in educational value with udev. For most of BLFS editors, it's a black box. Editors just expect someone to configure udev properly, so that they don't have to think about it. Unfortunately, udev is one of the packages that _require_ compl

Re: persistent CD symlinks

2006-05-14 Thread Alexander E. Patrakov
Jim Gifford wrote: There is one more solution, which will prevent all udev issues altogether. Going to MAKEDEV. +1, because I don't believe in educational value with udev. For most of BLFS editors, it's a black box. Editors just expect someone to configure udev properly, so that they don't ha

Re: persistent CD symlinks

2006-05-14 Thread Archaic
On Sun, May 14, 2006 at 10:29:30PM -0700, Jim Gifford wrote: > There is one more solution, which will prevent all udev issues > altogether. Going to MAKEDEV. I fail to see how that cooresponds to anything I said. This thread is about persistence with udev, not udev vs. MAKEDEV. Please provide com

Re: persistent CD symlinks

2006-05-14 Thread Jim Gifford
There is one more solution, which will prevent all udev issues altogether. Going to MAKEDEV. http://people.redhat.com/nalin/MAKEDEV -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Archaic
On Sun, May 14, 2006 at 10:20:57PM -0700, Jim Gifford wrote: > Dump the cdsymlinks scripts altogether and use the existing tools that > we have installed with udev. Use path_id and setup the rules based on that. This doesn't give device persistence, but rather location persistence. I've started a

persistent CD symlinks

2006-05-14 Thread Archaic
Creating a new thread as this is OT for the original thread. The message being replied to can be found here: http://linuxfromscratch.org/pipermail/lfs-dev/2006-May/057173.html On Mon, May 15, 2006 at 10:19:37AM +0600, Alexander E. Patrakov wrote: > > that's even more variables to look for. Theref

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Jim Gifford
Dump the cdsymlinks scripts altogether and use the existing tools that we have installed with udev. Use path_id and setup the rules based on that. On the systems, the users will need to run /lib/udev/path_id /dev/{cdrom-device} which would give output like this for SCSI path_id /block/sr0 ID_PA

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Alexander E. Patrakov
Bruce Dubbs wrote: Alexander E. Patrakov wrote: So I propose to ditch the script from LFS and optionally move it to BLFS or to a hint. LFS should provide readers with instructions to create the relevant rules manually: # Begin 82-persistent-cd.rules # SAMSUNG_CD-ROM_SC-148F (pci-:00:07.1-

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Jeremy Huntwork
Alexander E. Patrakov wrote: Manual creation is also consistent with the situation with network devices in http://www.linuxfromscratch.org/lfs/view/development/chapter07/network.html. From what I've read so far, I'm leaning towards the manual creation. It's consistent with the rest of the bo

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Alexander E. Patrakov
Archaic wrote: On Mon, May 15, 2006 at 09:39:45AM +0600, Alexander E. Patrakov wrote: So I propose to ditch the script from LFS and optionally move it to BLFS or to a hint. LFS should provide readers with instructions to create the relevant rules manually: Manual would certainly avoid any and

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Bruce Dubbs
Alexander E. Patrakov wrote: > So I propose to ditch the script from LFS and optionally move it to BLFS > or to a hint. LFS should provide readers with instructions to create the > relevant rules manually: > > # Begin 82-persistent-cd.rules > > # SAMSUNG_CD-ROM_SC-148F (pci-:00:07.1-ide-0:1)

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Archaic
On Mon, May 15, 2006 at 09:39:45AM +0600, Alexander E. Patrakov wrote: > > So I propose to ditch the script from LFS and optionally move it to BLFS or > to a hint. LFS should provide readers with instructions to create the > relevant rules manually: Manual would certainly avoid any and all race

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Archaic
On Sun, May 14, 2006 at 08:09:49PM -0700, Jim Gifford wrote: > > So far my system that has 4 ide cd drives and 4 scsi devices, hasn't > seen any problems. From what I can see there has to be some way in sysfs > that we can use instead of using the Debian method, which something > about that scr

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Alexander E. Patrakov
Jim Gifford wrote: Alexander E. Patrakov wrote: NAK: racy. The helper script assumes that new devices don't appear in /sys during operation. So far in the testing we have had done, no issues have come up, we have tried it with older hardware along with newer hardware. Testing alone is insuf

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Jim Gifford
Alexander E. Patrakov wrote: NAK: racy. The helper script assumes that new devices don't appear in /sys during operation. So far in the testing we have had done, no issues have come up, we have tried it with older hardware along with newer hardware. So far my system that has 4 ide cd drives

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Alexander E. Patrakov
Jim Gifford wrote: Archaic and all I came around an interesting way to fix the cd-symlink issue, without having to use the script that is in LFS.org repo. Just passing on the information I just learned hopefully it will be useful to someone. These new rules are in the udev-cross-lfs packages as

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Jim Gifford
The thread was about the udev rules, cdsymlinks are in the rules that are in the archive. That's why I thought this would be the appropriate thread. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Archaic
On Sun, May 14, 2006 at 02:52:02PM -0700, Jim Gifford wrote: > Archaic and all I came around an interesting way to fix the cd-symlink > issue Jim, this thread is for discussion of what I posted. There was nothing about disks in my OP. Please start a new thread so people can distinguish between th

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Jim Gifford
Bruce, Actually I made some bigger changes than that here's the link to the svn with the udev rules in it. http://trac.cross-lfs.org/browser/trunk/udev/35-helper.rules?rev=1640 http://trac.cross-lfs.org/browser/trunk/udev/cdsymlink_helper.sh?rev=1640 -- http://linuxfromscratch.org/mailman/l

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Joe Ciccone
Bruce Dubbs wrote: > > Joe, > I was asking about the situation where I have my hard disk on sda and > a cdrom on hda AND hdb. It's probably not a smart way to go, but its > possible. > > -- Bruce > I set my vm back to normal and it's doing some work now so I'm not going to test. But what wo

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Bruce Dubbs
Joe Ciccone wrote: > Bruce Dubbs wrote: >> That's cool. What happens if there is a cdrom on hda too? >> > I put my harddrive on hdb and created a cdrom on hda. This has the same > pattern as the last one. > > lrwxrwxrwx 1 root root 3 2006-05-14 15:04 /dev/cdrom -> hda > lrwxrwxrwx 1 root root

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Jim Gifford
Bruce, I added a just in case feature. What do you think. KERN_NAME="$1" if [ "$KERN_NAME" = "" ]; then mesg Bad invocation: \$1 is not set exit 1 fi FILES="`ls /sys/bus/ide/drivers/ide-cdrom | grep '\.' `" for file in $FILES; do TEST="`ls /sys/bus/ide/dri

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Joe Ciccone
Bruce Dubbs wrote: > > That's cool. What happens if there is a cdrom on hda too? > I put my harddrive on hdb and created a cdrom on hda. This has the same pattern as the last one. lrwxrwxrwx 1 root root 3 2006-05-14 15:04 /dev/cdrom -> hda lrwxrwxrwx 1 root root 3 2006-05-14 15:04 /dev/cdrom0

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Jim Gifford
Bruce Dubbs wrote: I'm by no means an expert here, but does the GROUP do anything for a symlink that has 777 permissions? Or does that apply to the name when the actual device is created? I need to remove a lot of things in these rules before we go to production. How robust is this? It

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Bruce Dubbs
Joe Ciccone wrote: > Bruce Dubbs wrote: >> How robust is this? It would seem to work if there are two cdroms, but >> does it generalize to the admittedly unusual case where there are more >> than two? I'm not sure how the drives are recognized. I only have one >> and it is at "/sys/bus/ide/driver

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Joe Ciccone
Bruce Dubbs wrote: > How robust is this? It would seem to work if there are two cdroms, but > does it generalize to the admittedly unusual case where there are more > than two? I'm not sure how the drives are recognized. I only have one > and it is at "/sys/bus/ide/drivers/ide-cdrom/0.0" What do

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Bruce Dubbs
Jim Gifford wrote: > Archaic and all I came around an interesting way to fix the cd-symlink > issue, without having to use the script that is in LFS.org repo. Just > passing on the information I just learned hopefully it will be useful to > someone. These new rules are in the udev-cross-lfs package

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Jim Gifford
Archaic and all I came around an interesting way to fix the cd-symlink issue, without having to use the script that is in LFS.org repo. Just passing on the information I just learned hopefully it will be useful to someone. These new rules are in the udev-cross-lfs packages as of today, if you w

LiveCD Version x86-6.2-pre4 Released

2006-05-14 Thread Jeremy Huntwork
The LFS LiveCD team is pleased to announce the latest pre-release of the x86-6.2 LiveCD, x86-6.2-pre4. This latest version features a change in the method used to allow write access to the root filesystem. Instead of unionfs, which has proven to be unstable, device-mapper and an ext2 image are

Re: summary of udev changes.

2006-05-14 Thread Dan Nicholson
On 5/13/06, Archaic <[EMAIL PROTECTED]> wrote: On Sat, May 13, 2006 at 10:10:45PM +0200, Stef Bon wrote: > > Is the newest udev compatible with older kernels, like 2.6.11.12? No. If I recall, it wants 2.6.15. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linux

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Alexander E. Patrakov
Archaic wrote: KERNEL=="rtc", MODE="664" # Changed from 666. The distros disagree on mode, but none allow world write. They are right: you don't want random users to set the hardware clock. And read-only access is still useful for high-precision timing (and used, e.g., by qemu).

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Andrew Benton
Jim Gifford wrote: Archaic wrote: This is preliminary. I'm still working through the rest of the rules. This covers the first 3 sections of the current 25-lfs.rules file. **NOTE** Due to the size of this email, PLEASE make heavy use of trimming (like stripping my comments and keeping just the r

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Alex Merry
On Sat, May 13, 2006 at 01:12:17PM -0600, Archaic wrote: > This is preliminary. I'm still working through the rest of the rules. > This covers the first 3 sections of the current 25-lfs.rules file. > > KERNEL=="capi", NAME="capi20", > SYMLINK+="isdn/capi20" > > K

Re: RFC: new/changed udev rules - Part 1

2006-05-14 Thread Jim Gifford
Archaic wrote: This is preliminary. I'm still working through the rest of the rules. This covers the first 3 sections of the current 25-lfs.rules file. **NOTE** Due to the size of this email, PLEASE make heavy use of trimming (like stripping my comments and keeping just the rule you are replying