Bug#343262: devfs filename emulation not right for raid devices

2005-12-25 Thread Joey Hess
Marco d'Itri wrote: > Indeed. I will try to find a replacement for this (help is welcome...): > > get_dev_number_cciss() { > grep '^cciss/' /proc/driver/cciss/* | cat -n | \ > sed -n "/cciss\/$1:/s/cciss.*//p" > } Here's a replacement for cat -n in posix sh. You should just be able to drop

Bug#343262: devfs filename emulation not right for raid devices

2005-12-16 Thread Marco d'Itri
On Dec 14, Joey Hess <[EMAIL PROTECTED]> wrote: > It just doesn't seem to be working in d-i. /etc/udev/rules.d # /lib/udev/raid-devfs.sh cciss/c0d0p5 cat: invalid option -- n BusyBox v1.01 (Debian 1:1.01-3) multi-call binary Usage: cat [-u] [FILE]... /etc/udev/rules.d # Indeed. I will try to fi

Bug#343262: devfs filename emulation not right for raid devices

2005-12-16 Thread Joey Hess
Marco d'Itri wrote: > Nevermind, I just did not remember how raid-devfs.sh. > The problem is that I do not understand why it's not working in d-i and > I do not have any CCISS hardware to test it. > Can you further investigate why it's not working? Is the script run at all? > Does the script work a

Bug#343262: devfs filename emulation not right for raid devices

2005-12-16 Thread Marco d'Itri
On Dec 14, Joey Hess <[EMAIL PROTECTED]> wrote: > > IIRC 2.4 kernels used c0d0p1 and 2.6 kernels used the other format or > > something like this, so who initially contributed the script choose the > I've checked 2.4 and it uses disc/part0 devices with devfs for this > device. Indeed, I was thinki

Bug#343262: devfs filename emulation not right for raid devices

2005-12-14 Thread Joey Hess
Marco d'Itri wrote: > IIRC 2.4 kernels used c0d0p1 and 2.6 kernels used the other format or > something like this, so who initially contributed the script choose the > old format since it would be more compatible. > As an extra data point, I have a SuSE system installed a few years ago > with stati

Bug#343262: devfs filename emulation not right for raid devices

2005-12-14 Thread Marco d'Itri
On Dec 14, Joey Hess <[EMAIL PROTECTED]> wrote: > Under devfs, cciss devices are named /dev/cciss/disc, /dev/cciss/part0, > etc. > > Under udev with devfs emulation using devfs.rules, the devices are named > /dev/cciss/c0d0, /dev/cciss/c0d0p1, etc. IIRC 2.4 kernels used c0d0p1 and 2.6 kernels us

Bug#343262: devfs filename emulation not right for raid devices

2005-12-13 Thread Joey Hess
Package: udev-udeb Version: 0.076-6 Severity: normal Tags: d-i Under devfs, cciss devices are named /dev/cciss/disc, /dev/cciss/part0, etc. Under udev with devfs emulation using devfs.rules, the devices are named /dev/cciss/c0d0, /dev/cciss/c0d0p1, etc. This breaks lilo-installer in d-i which e