Package: udev Version: 0.053-1 Tags: patch Due to various reasons, kernels 2.6.7 through 2.6.10 don't work on my system and I continue to use version 2.6.6. Some time ago I upgraded the udev package, and just this weekend rebooted for the first time since then. The system would no longer boot because udev declined to start and my /dev was missing many device nodes.
To cut the story short, I managed to get my system running again and I propose the attached patches to enable others in a similar situation an easy solution. The patches add a parameter to udev.conf to tell the init script to skip the kernel version check. In addition, please add a NEWS file telling administrators that the init script will not start if the kernel is older than 2.6.8. This will allow the administrator to abort the upgrade before their system becomes unusable. -D PS. I actually have 0.050-6 installed right now, but the patches are against the 0.053-1 source package. -- One OS to rule them all, one OS to find them, One OS to bring them all and in the darkness bind them, In the Land of Redmond, where the Shadows lie. www: http://dman13.dyndns.org/~dman/ jabber: [EMAIL PROTECTED]
--- rules.orig 2005-02-21 22:18:47.000000000 -0500 +++ rules 2005-02-21 22:22:26.000000000 -0500 @@ -74,6 +74,8 @@ $B/extras/cdsymlinks.conf $D/etc/udev/ printf "# maximum size of the /dev tmpfs\ntmpfs_size=\"5M\"\n\n" \ >> $D/etc/udev/udev.conf + printf "# Uncomment this to force udev to consider the kernel as supported.\n# See bug #284782 for information on the consequences.\n#assume_kernel_supported=\"true\"\n\n" \ + >> $D/etc/udev/udev.conf sed -e 's/^#\([^ ]\)/\1/' < extra/compat.rules > \ $D/etc/udev/compat-full.rules dh_link --all \
--- udev.init.orig 2005-02-21 22:05:50.000000000 -0500 +++ udev.init 2005-02-21 22:14:24.000000000 -0500 @@ -64,6 +64,11 @@ # this function is duplicated in preinst, postinst and d-i supported_kernel() { + # Allow an administrator to bypass the kernel version check and accept + # the consequences. + # See #284782 (kernel 2.6.7 doesn't set SYSFS{removable} for cdrom/cdrw) + if [ "$assume_kernel_supported" = "true" ] ; then return 0 ; + case "$(uname -r)" in 2.[012345].*|2.6.[0-7]|2.6.[0-7][!0-9]*) return 1 ;; esac
signature.asc
Description: Digital signature