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

Auke Kok sofar at lunar-linux.org
Sun May 8 13:07:07 UTC 2005


Author: sofar
Date: 2005-05-08 13:07:04 +0000 (Sun, 08 May 2005)
New Revision: 14658

Modified:
   lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
remove mount attempt, fix package grep resulting in some packages not being installed, and add a template for the ISO_DATE for moonbase/theedge packages.


Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install	2005-05-08 12:51:30 UTC (rev 14657)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install	2005-05-08 13:07:04 UTC (rev 14658)
@@ -386,13 +386,8 @@
 
         MNTPNT=$(get_mount_point $FSYS) &&
 
-	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
-	if $DIALOG --defaultno --yesno "$PROMPT" 0 0; then
+	PROMPT="$PART might already be formatted with the $FSYS filesystem and may contain data. Formatting it again will destroy all present data on this partition. Do you wish to format it?"
+	if $DIALOG --defaultno --yesno "$PROMPT" 0 0 ; then
 	    FORMAT=yes
             CHECK=$(check_partition $FSYS) &&
             FORCE=$(use_the_force $FSYS)
@@ -456,7 +451,7 @@
 transfer_package()
 {
 	cd $TARGET &&
-	LINE=$(grep $1 /.packages)
+	LINE=$(grep "^$1:" /.packages)
 	MOD=$(echo $LINE | cut -d: -f1)
 	VER=$(echo $LINE | cut -d: -f4)
 	SIZ=$(echo $LINE | cut -d: -f5)
@@ -602,7 +597,7 @@
                   (
                     cd $TARGET/var/lib/lunar
                     tar xjf /var/lib/lunar/moonbase.tar.bz2 2> /dev/null
-		    tar j --list -f /var/lib/lunar/moonbase.tar.bz2 | sed 's:^:/var/lib/lunar/:g' > $TARGET/var/log/lunar/install/moonbase-%VERSION%
+		    tar j --list -f /var/lib/lunar/moonbase.tar.bz2 | sed 's:^:/var/lib/lunar/:g' > $TARGET/var/log/lunar/install/moonbase-%ISO_DATE%
                   )
 	        (( CNT++ ))
             fi
@@ -617,7 +612,7 @@
 	) | $DIALOG --title "Installing $NUM packages" --gauge "" 10 70 0 
 
         # setup list of installed packages etc.
-        echo "moonbase:%VERSION%:installed:%VERSION%:37M" >> $TARGET/var/state/lunar/packages
+        echo "moonbase:%ISO_DATE%:installed:%ISO_DATE%:37M" >> $TARGET/var/state/lunar/packages
 	chroot_run lsh create_module_index
 	chroot_run lsh create_depends_cache
 	chroot_run lsh update_plugins



More information about the Lunar-commits mailing list