[Lunar-commits] r14643 - lunar-iso/trunk/lunar-install/sbin

Auke Kok sofar at lunar-linux.org
Sat May 7 17:19:17 UTC 2005


Author: sofar
Date: 2005-05-07 17:19:15 +0000 (Sat, 07 May 2005)
New Revision: 14643

Modified:
   lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
Trying to solve the mount problem... perhaps I need to skip test-mounting it. Somehow the mtab file gets fscked.


Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install	2005-05-07 16:29:22 UTC (rev 14642)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install	2005-05-07 17:19:15 UTC (rev 14643)
@@ -388,6 +388,7 @@
 
 	if mount -n /dev/discs/$PART -t $FSYS $TARGET -o ro; then
 	    PROMPT="$PART already is formatted with the $FSYS filesystem and may contain data. Do you wish to format it anyway?"
+	    umount -n /dev/discs/$PART > /dev/null 2>&1
 	else
 	    PROMPT="$PART already is formatted with the $FSYS filesystem and may contain data. Do you wish to format it anyway?"
 	fi
@@ -398,7 +399,6 @@
 	else
 	    FORMAT=no
 	fi
-	umount -n $TARGET > /dev/null 2>&1
 	MNT_OPTS=$(determine_mount_opts $FSYS) &&
         FSCK_PASS=$(determine_fsck_pass $FSYS $MNTPNT) &&
 
@@ -506,11 +506,21 @@
 		            $DIALOG --msgbox "Problem mounting swap on /dev/discs/$PART. Installation will continue." 8 50
 			fi
 		    # then try to mount normal FS's
-		    elif mkdir -p $TARGET$MOUNTPOINT && mount -n -t $FSYS /dev/discs/$PART $TARGET$MOUNTPOINT ${MNT_OPTS:+ -o $MNT_OPTS} &> /dev/null; then
-		        FSTAB="$FSTAB\n/dev/discs/$PART\t$MOUNTPOINT\t$FSYS\t${MNT_OPTS:-defaults}\t0 $FSCK_PASS"
 		    else
-		        sleep 3
-		        $DIALOG --msgbox "Problem mounting filesystem on /dev/discs/$PART. Installation will continue." 8 50
+		    	if [ ! -d $TARGET$MOUNTPOINT ] ; then
+				mkdir -p $TARGET$MOUNTPOINT
+			fi
+			if [ "$MNT_OPTS" != "defaults" ]; then
+				MNTOPTARGS="-e $MNT_OPTS"
+			else
+				MNTOPTARGS=""
+			fi
+			if mount -n /dev/discs/$PART $TARGET$MOUNTPOINT -t $FSYS $MNTOPTSARGS ; then
+		        	FSTAB="$FSTAB\n/dev/discs/$PART\t$MOUNTPOINT\t$FSYS\t$MNT_OPTS\t0 $FSCK_PASS"
+		    	else
+		        	sleep 3
+		        	$DIALOG --msgbox "Problem mounting filesystem on /dev/discs/$PART. Installation will continue." 8 50
+			fi
 		    fi
     		fi
 	    done
@@ -1223,10 +1233,6 @@
     DISABLE=on
     PREFIX="root at Lunar:/#"
 
-    touch "/mnt/read_write_check" 2>/dev/null &&
-    rm /mnt/read_write_check ||
-    mount -n -t devfs devfs /dev
-    mount -n -t proc  proc  /proc
     while true; do
         install_menu
     done



More information about the Lunar-commits mailing list