Re: udev depends on /usr

Martin Schlemmer
2004-02-03T04:10:22Z

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

On Tue, 2004-02-03 at 00:44, Greg KH wrote:
> On Mon, Feb 02, 2004 at 11:32:21PM +0100, J.A. Magallon wrote:
> >
> > On 2004.01.26, Greg KH wrote:
> > > I've released the 015 version of udev. It can be found at:
> > > kernel.org/pub/linux/utils/kernel/hotplug/udev-015.tar.gz
> > >
> >
> > Little problem ;)
> > I have some modules in /etc/modprobe.preload. Subject of this mail is
> > ide-cd.
> >
> > When ide-cd gets loaded, the kernel/udev chain calls
> > /etc/udev/scripts/ide-devfs.sh, wich uses 'expr'. I my system
> > (Mandrake 10) and on a RedHat 9 'expr' lives in /usr/bin, and /usr can
> > be still unmounted when rc.modules is called...
> >
> > Solution ? Change udev, change coreutils locations...
>

Maybe try to change:

HOST=`expr ${HOST} - 1`

to

Host=$((HOST - 1))

? It should be sh compatible, but having used bash too long, I
am not sure 8) (although sh -c 'foo=2; echo $((foo + 1))' work
with bash in sh mode ..)

Cheers,

--
Martin Schlemmer

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]