[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#385730: usplash: Fail to start because /dev/null is missing



Package: usplash
Version: 0.3e
Severity: important
Tags: patch

I just tested usplash in qemu using the latest sid packages and kernel
2.6.17.  It failed to start complaining that /dev/null was missing.
I'm not sure why, but a fix is to create the device in the
init-top/usplash script before starting usplash.  Hree is a patch to
enable it.  I tested with it, and it solved the problem.  It might be
an idea to add some if-test around it to only try to create /dev/null
if it is missing.

--- /usr/share/initramfs-tools/scripts/init-top/usplash.orig	2006-09-02 17:55:04.000000000 +0200
+++ /usr/share/initramfs-tools/scripts/init-top/usplash	2006-09-02 17:52:43.000000000 +0200
@@ -27,6 +27,10 @@
 done
 
 if [ $SPLASH = "true" ]; then
+	# Make sure /dev/null is available when usplash tries to start
+	mknod /dev/null c 1 3
+	chmod a+rw /dev/null
+
 	/sbin/usplash -c &
 	sleep 1
 fi

Friendly,
-- 
Petter Reinholdtsen



Reply to: