Bug#283919: initrd-tools: Should warn if root device is not found
On Monday 13 of December 2004 03:34, Horms wrote: On Thu, Dec 02, 2004 at 11:11:42AM +0100, Piotr Roszatycki wrote: Package: initrd-tools Version: 0.1.74 Severity: wishlist I'd like to see some warning, if /proc/sys/kernel/real-root-dev is equal 0. That means no root device was found and the message would be very helpful. I've spend an hour trying to reboot the kernel 2.6 with root=/dev/ida/c0d0p2 parameter. I didn't know the kernel doesn't understand such parameter and I've found the real reason by my own inspection in initrd's mini-shell. That sounds reasonable, though I am not sure where you would want the warning to go. Perhaps a patch would help illustrate the idea. My proposition: --- init.orig 2004-08-27 20:43:34 +0200 +++ init2004-12-13 10:19:29 +0100 @@ -412,7 +412,10 @@ rootdev=$(cat proc/sys/kernel/real-root-dev) cmdline=$(cat /proc/cmdline) umount -n proc -if [ $rootdev != 256 ]; then +if [ $rootdev = 0 ]; then +echo Kernel can not convert a name into device number. Check the 'root=' argument +fi +if [ $rootdev != 256 ] [ $rootdev != 0 ]; then mount_root cd mnt [ $DEVFS ] mount -nt devfs devfs dev -- .''`.Piotr Roszatycki, Netia SA : :' :mailto:[EMAIL PROTECTED] `. `' mailto:[EMAIL PROTECTED] `-
Bug#283919: initrd-tools: Should warn if root device is not found
On Thu, Dec 02, 2004 at 11:11:42AM +0100, Piotr Roszatycki wrote: Package: initrd-tools Version: 0.1.74 Severity: wishlist I'd like to see some warning, if /proc/sys/kernel/real-root-dev is equal 0. That means no root device was found and the message would be very helpful. I've spend an hour trying to reboot the kernel 2.6 with root=/dev/ida/c0d0p2 parameter. I didn't know the kernel doesn't understand such parameter and I've found the real reason by my own inspection in initrd's mini-shell. That sounds reasonable, though I am not sure where you would want the warning to go. Perhaps a patch would help illustrate the idea. Thanks -- Horms
Bug#283919: initrd-tools: Should warn if root device is not found
Package: initrd-tools Version: 0.1.74 Severity: wishlist I'd like to see some warning, if /proc/sys/kernel/real-root-dev is equal 0. That means no root device was found and the message would be very helpful. I've spend an hour trying to reboot the kernel 2.6 with root=/dev/ida/c0d0p2 parameter. I didn't know the kernel doesn't understand such parameter and I've found the real reason by my own inspection in initrd's mini-shell. -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (900, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.9-1-686 Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2) Versions of packages initrd-tools depends on: ii coreutils [fileutils] 5.2.1-2The GNU core utilities ii cpio 2.5-1.1GNU cpio -- a program to manage ar ii cramfsprogs 1.1-6 Tools for CramFs (Compressed ROM F ii dash 0.5.1-3The Debian Almquist Shell ii fileutils 5.2.1-2The GNU file management utilities ii util-linux2.12h-3Miscellaneous system utilities -- no debconf information