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

Bug#265902: patch (was: lilo-installer/manual_bootdev claims traiditional device names work, but they do not)



Package: lilo-installer
Followup-For: Bug #265902

Patch for this bug attached. It changes nothing for users that use devfs
names, but allows to also use traditional names (lilo-installer will not
check whether such device exists, but will fail later if it does not).

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11
Locale: LANG=uk_UA.KOI8-U, LC_CTYPE=uk_UA.KOI8-U (charmap=KOI8-U)
Index: debian/postinst
===================================================================
--- debian/postinst	(revision 26219)
+++ debian/postinst	(working copy)
@@ -83,20 +83,20 @@
       db_go || exit 10
       db_get lilo-installer/manual_bootdev
 
-      if [ -b "$RET" ]; then
         case "$RET" in
           /dev/ide*|/dev/discs/*|/dev/scsi/*)
+	   if [ -b "$RET" ]; then
 	    bootdev="$(mapdevfs $RET)"
 	    not_done=0
 	    part=$(echo $bootdev | sed 's/.*\([0-9]\)/part\1/')
+	   fi
 	  ;;
-	  /dev/[hs]d[a-z][0-9])
+	  /dev/[hs]d[a-z]*)
 	    bootdev=$RET;
 	    not_done=0
 	    part=$(echo $bootdev | sed 's/.*\([0-9]\)/part\1/')
 	  ;;
 	esac
-      fi
 
       if [ $not_done -eq 1 ]; then
         db_subst lilo-installer/manual_bootdev_error path "$RET"

Reply to: