Skip to contentSkip to conversation

init.d debian patch

PATCH John L. Fjellstad 4 participants 8 messages Feb 16, 2004 – Feb 17, 2004

lore
Share & tools
lore
#0 lore raw

I dualboot between 2.4.x and 2.6.x right now, and although I want udev to start up when 2.6 is booting, I don't want it to try when 2.4.x is booting.

This is a small patch to not start up udev if sysfs is not mounted.

Signature · 2 lines
John L. Fjellstad
web: http://www.fjellstad.org/          Quis custodiet ipsos custodes
udev.debian renamed from udev.debian.orig +2 -1
@@ -61,7 +61,8 @@
 	if [ ! -d $udev_dir ]; then
 		mkdir $udev_dir
 	fi
-	if [ ! -d $sysfs_dir ]; then
+	# don't use udev if sysfs is not mounted
+	if [ ! -d $sysfs_dir/block ]; then
 		exit 1
 	fi
 	# propogate /udev from /sys - we only need this while we do not
#1 lore raw
Quoted 6 lines · John L. Fjellstad

I dualboot between 2.4.x and 2.6.x right now, and although I want udev to start up when 2.6 is booting, I don't want it to try when 2.4.x is booting.

This is a small patch to not start up udev if sysfs is not mounted.

Thanks, I've also made this change to the red hat init script.

And I've added some other stuff to the red hat one, so you might want to take a look at it too.

Is there a official udev Debian package yet? If so, who is the maintainer of it?

thanks,

greg k-h

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to John L. Fjellstad
Quoted 10 lines · Greg KH
Quoted 6 lines · John L. Fjellstad

I dualboot between 2.4.x and 2.6.x right now, and although I want udev to start up when 2.6 is booting, I don't want it to try when 2.4.x is booting.

This is a small patch to not start up udev if sysfs is not mounted.

Quoted 8 lines

Thanks, I've also made this change to the red hat init script.

And I've added some other stuff to the red hat one, so you might want to take a look at it too.

Is there a official udev Debian package yet? If so, who is the maintainer of it?

I see a udev backported to Debian Woody, owned by Marco d'Itri <[email protected]>. Seems to be 0.014.

Also seen udev hanging out in Madrake Cooker & SuSE 9.

Signature · 13 lines
____               .:.                 ____
Bryan W. Headley - [email protected]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#3 lore raw
In reply to John L. Fjellstad
Quoted 2 lines · Greg KH

Is there a official udev Debian package yet? If so, who is the maintainer of it?

Yes, you know I am the maintainer and the package has been for months available from http://www.bofh.it/~md/debian/ .
I have not uploaded it yet to the archive because udev keeps changing and I do not want to support upgrades until it will be more stable.

I also see no point in uploading it until it will manage /dev, and it has been pointed out by multiple people that this cannot be done until a solution is found for devices like /dev/console, which are needed at the beginning of the boot sequence.

Anyway, I'd prefer if you did not ship this init script with udev, there is no point in doing this and it will always lag behind the official one.

Signature · 13 lines
ciao, |
Marco | [4642 diTX4Gz46z.u2]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#4 lore raw
In reply to John L. Fjellstad
Quoted 2 lines · Bryan W. Headley

I see a udev backported to Debian Woody, owned by Marco d'Itri <[email protected]>. Seems to be 0.014.

Hm, a bit out of date :(

Quoted 1 line

Also seen udev hanging out in Madrake Cooker & SuSE 9.

Great, thanks for letting me know.

greg k-h

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#5 lore raw
In reply to John L. Fjellstad
Quoted 8 lines · Marco d'Itri
Quoted 2 lines · Greg KH

Is there a official udev Debian package yet? If so, who is the maintainer of it?

Yes, you know I am the maintainer and the package has been for months available from http://www.bofh.it/~md/debian/ .
I have not uploaded it yet to the archive because udev keeps changing and I do not want to support upgrades until it will be more stable.

Hm, you mean Red Hat is shipping something that Debian thinks isn't stable enough? Just kidding...

Quoted 4 lines

I also see no point in uploading it until it will manage /dev, and it has been pointed out by multiple people that this cannot be done until a solution is found for devices like /dev/console, which are needed at the beginning of the boot sequence.

I just booted my laptop that runs Fedora and a stock 2.6.3-rc4 kernel using udev to manage /dev. Gentoo is also able to do this just fine. I'll clean up my scripts that I used to do this and post how to do this with the next release for others who also want to do this.

So it is possible.

Quoted 3 lines

Anyway, I'd prefer if you did not ship this init script with udev, there is no point in doing this and it will always lag behind the official one.

Well, I'll leave it alone for now, is that ok?

thanks,

greg k-h

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#6 lore raw
In reply to John L. Fjellstad
Quoted 3 lines · Greg KH
Quoted 2 lines

I see a udev backported to Debian Woody, owned by Marco d'Itri <[email protected]>. Seems to be 0.014.

Hm, a bit out of date :(

Backports are unofficial packages maintained by random people, so far I have always packaged the latest release in no more than a few days.

Anyway, if the next release will support multiple configuration files and additional symlink configuration entries I will try uploading it and see what will happen.

Signature · 13 lines
ciao, |
Marco | [4646 riQS6Ce.awRJI]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#7 lore raw
In reply to John L. Fjellstad
Quoted 4 lines · Marco d'Itri

Anyway, if the next release will support multiple configuration files and additional symlink configuration entries I will try uploading it and see what will happen.

I'm waiting for a updated patch for both of those features :)

thanks,

greg k-h

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel