On Tue, Jul 08, 2008 at 12:45:20PM +0200, Reinhard Karcher wrote:
> I have two systems, one using a custom 2.6.25 kernel without initrd and one
> using the latest debian 2.6.26 kernel with initrd. The debian-kernel
> boots fine using the new udev, the kernel without initrd doesn't boot.
> So, maybe the absence of initrd is connect to the bug.
Attached patch seems to fix the problem here, in a non initrd system
IIRC, these "[test ] .." constructs should only be used with "||", they
can have some side effects with "&&".
--
Agustin
--- /etc/init.d/udev.orig 2008-07-08 14:57:26.000000000 +0200
+++ /etc/init.d/udev 2008-07-08 14:57:50.000000000 +0200
@@ -31,7 +31,9 @@
fi
# relabel the new tmpfs accordingly
- [ -x /sbin/restorecon ] && /sbin/restorecon /dev
+ if [ -x /sbin/restorecon ]; then
+ /sbin/restorecon /dev
+ fi
}
create_dev_makedev() {