Bug#310316: Patch for the initrd-tools problem
tags 310316 patch
thanks
Hi,
Attached patch fixes the situation and makes my machine boot again. It
looks like the value of zero for rootdev (which is extracted from
/proc/sys/kernel/real-root-dev) is a valid one, contrary to the assertion
in the init code of initrd-tools 0.1.80. This is the value rootdev gets
assigned on my machine, so no real root is mounted and initrd init keeps being
re-executed in an infinite loop.
Best regards,
Jurij Smakov jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
diff -aur a/init b/init
--- a/init 2005-05-17 11:08:38.000000000 -0400
+++ b/init 2005-05-22 23:45:03.000000000 -0400
@@ -418,11 +418,7 @@
rootdev=$(cat proc/sys/kernel/real-root-dev)
cmdline=$(cat /proc/cmdline)
umount -n proc
-if [ $rootdev = 0 ]; then
- echo "Kernel can not convert a name into device number."
- echo "Check your 'root=' argument passed on boot by bootloader."
-fi
-if [ $rootdev != 256 ] && [ $rootdev != 0 ]; then
+if [ $rootdev != 256 ]; then
if [ $rootdev != 255 ]; then
mount_root
fi
Reply to: