Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128792 - ~sys-fs/udev-089 prevents system from booting when using kernel <=2.6.14
Summary: ~sys-fs/udev-089 prevents system from booting when using kernel <=2.6.14
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
: 129132 (view as bug list)
Depends on:
Blocks: udev-meta
  Show dependency tree
 
Reported: 2006-04-04 10:06 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2006-04-07 06:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2006-04-04 10:06:50 UTC
Hi,

I can't boot my computer with ~udev-089 while using kernel 2.6.13.5
The problem lies in /lib/rcscripts/addons/udev-start.sh in function populate_udev()

        if [ "$(get_KV)" -gt "$(KV_to_int '2.6.14')" ] ; then
                ebegin "Populating /dev with existing devices through uevents"
                udevtrigger
                eend 0
        else
                ebegin "Populating /dev with existing devices with udevstart"
                /sbin/udevstart
                eend 0
        fi

but according to the udev-089 and udev-089-r1 ebuilds, udevstart gets no longer installed. 
My solution was to hack the ebuild and let install udevstart again but I know that udevstart is considered as deprecated so I don't know if this was the correct solution.

Cheers
Poly-C
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-04-04 12:33:30 UTC
Crap, you are right, I'll go fix this.  udevstart should only be for older
kernels...
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-04-04 13:21:44 UTC
Fixed in 089-r2
Comment 3 sg313 2006-04-04 14:44:42 UTC
Hi. You have already solved that bug, so this may be of no use. Bud i didn't want to throw it away and so i post it anyway:
HTH,
sg
--- sys-fs/udev/udev-089-r2.ebuild	2006-04-04 22:21:05.000000000 +0200
+++ /usr/local/overlays/portage/sys-fs/udev/udev-089-r3.ebuild	2006-04-04 23:42:47.000000000 +0200
@@ -1,8 +1,8 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-089-r2.ebuild,v 1.1 2006/04/04 20:21:05 gregkh Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-089-r1.ebuild,v 1.1 2006/04/04 03:27:23 gregkh Exp $
 
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic toolchain-funcs
 
 DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
 HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
@@ -77,9 +77,8 @@
 	dosbin udev
 	dosbin udevd
 	dosbin udevsend
-	dosbin udevstart
 	dosbin udevtrigger
-	dosbin udevcontrol
+	dosbin udevcontrol	
 	dosbin extras/run_directory/udev_run_devd
 	dosbin extras/run_directory/udev_run_hotplugd
 	dosbin extras/ata_id/ata_id
@@ -89,6 +88,12 @@
 	dosbin extras/path_id/path_id
 	dosbin extras/cdrom_id/cdrom_id
 
+	# Check wether the running kernel has revision 2.6.15 or newer (uevent interface)
+	
+	if [ $(KV_to_int 2.6.15) -gt $(KV_to_int ${KV}) ]; then
+		dosbin udevstart
+	fi
+
 	# vol_id library (needed by mount and HAL)
 	dolib extras/volume_id/lib/*.a extras/volume_id/lib/*.so*
 	# move the .a files to /usr/lib
@@ -244,6 +249,15 @@
 		ewarn
 	fi
 
+	if [ $(KV_to_int 2.6.15) -gt $(KV_to_int ${KV}) ]; then
+		ewarn "Your kernel does not support uevent interface."
+		ewarn "Only kernels with revision 2.6.15 or later support uevent."
+		ewarn "Deprecated udevstart has been installed to sustain functionality,"
+		ewarn "but anyway you should upgrade your kernel."
+	else
+		einfo "Your kernel supports uevent. /sbin/udevstart has not been merged."
+	fi
+
 	einfo
 	einfo "For more information on udev on Gentoo, writing udev rules, and"
 	einfo "         fixing known issues visit:"
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-04-04 15:55:45 UTC
Hm, patches only work as attachments...

Anyway, we don't want to check the running kernel, because what happens if you
want to revert to an older one after you have already installed udev?

So that kind of patch doesn't work, the current ebuild should work
properly for you now.  If not, please let me know.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-04-07 06:50:20 UTC
*** Bug 129132 has been marked as a duplicate of this bug. ***