bootdisk: ui-main (HEAD) [malekith]

PLD CVS pld-cvs-commit w pld.org.pl
Wto, 6 Sie 2002, 11:23:55 CEST


Module name:	bootdisk
Changes by:	malekith	02/08/06 11:23:51

Modified files:
	ui-main

Log message:
- bug fix for deletion of last partition

Index: ui-main
===================================================================
RCS file: /cvsroot/bootdisk/batch-installer/ui/ui-main,v
diff -d -u -r1.80 -r1.81
--- ui-main	2002/07/29 11:17:21	1.80
+++ ui-main	2002/08/06 09:23:51	1.81
@@ -701,8 +701,8 @@
 while true
 do
     id=$(($id+1))
-    eval "dest_part_mnt_point=\$dest_part${id}_mnt_point"
-    test "$dest_part_mnt_point" || { echo $id; return 0; }
+    eval "dest_part_device=\$dest_part${id}_device"
+    test "$dest_part_device" || { echo $id; return 0; }
 done
 }
 
@@ -844,6 +844,7 @@
 	delete_last_part)
 	    new_number=`new_partition_number`
 	    last_partition_number=`expr $new_number - 1 || :`
+	    eval "dest_part${last_partition_number}_device="
 	    eval "dest_part${last_partition_number}_mnt_point="
 	    position=`expr $position - 7`
 	    ;;
@@ -861,6 +862,7 @@
 		else 
 		  echo ext2
 		fi)"
+	    eval "dest_part${nr}_device=/dev/hda"
 	    # if we have only one disk, choose it
 	    if echo "$dest_devices" | grep -q " "; then
 		:



Więcej informacji o liście dyskusyjnej pld-installer