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

patch for /usr/share/initramfs-tools/scripts/live-helpers



Hi all

I put Debian Live on a USB flash drive. Whenever I boot this system on a
machine with a CD/DVD drive without a medium, my console gets flooded at
boot time with the following error message:
/init: line 1: cannot open /dev/hda: No medium found

I was searching for the cause of this error message and found it in the
function get_fstype()
of /usr/share/initramfs-tools/scripts/live-helpers. I just removed a
redirected standard input and the error messages disappeared. For
details please see the attached patch.

I am an absolute Debian Live beginner. So feel free to flame me if this
patch is stupid. :-)

Greetings

Ronny
--- live-helpers.orig	2009-01-07 18:56:47.000000000 +0100
+++ live-helpers	2009-01-07 18:48:06.000000000 +0100
@@ -77,7 +77,7 @@
 	    return
 	fi
 
-	eval $(fstype < ${1} 2>/dev/null)
+	eval $(fstype ${1} 2>/dev/null)
 
 	if [ "${FSTYPE}" != "unknown" ]
 	then

Reply to: