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

[PATCH initramfs-tools 1/6] sripts/local: Remove obsolete hint about ATA device renaming



The great libata transition was done in Debian 'squeeze' and earlier in
Ubuntu.

Ben.
---
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 scripts/local | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/scripts/local b/scripts/local
index f6424f0..8360c4d 100644
--- a/scripts/local
+++ b/scripts/local
@@ -88,25 +88,6 @@ local_device_setup()
 
 	# We've given up, but we'll let the user fix matters if they can
 	while [ ! -e "$1" ]; do
-		# give hint about renamed root
-		case "$1" in
-		/dev/hd*)
-			suffix="${1#/dev/hd}"
-			major="${suffix%[[:digit:]]}"
-			major="${major%[[:digit:]]}"
-			if [ -d "/sys/block/sd${major}" ]; then
-				echo "WARNING bootdevice may be renamed. Try $2=/dev/sd${suffix}"
-			fi
-			;;
-		/dev/sd*)
-			suffix="${1#/dev/sd}"
-			major="${suffix%[[:digit:]]}"
-			major="${major%[[:digit:]]}"
-			if [ -d "/sys/block/hd${major}" ]; then
-				echo "WARNING bootdevice may be renamed. Try $2=/dev/hd${suffix}"
-			fi
-			;;
-		esac
 		echo "Gave up waiting for $2 device.  Common problems:"
 		echo " - Boot args (cat /proc/cmdline)"
 		echo "   - Check rootdelay= (did the system wait long enough?)"

-- 
Ben Hutchings
Life would be so much easier if we could look at the source code.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: