[pkg-fso-commits] [SCM] Various non-packaged files branch, master, updated. cfc34db748f10d5525115758625bdd80663fbffa

Steffen Moeller moeller at debian.org
Sat Apr 18 11:51:50 UTC 2009


The following commit has been merged in the master branch:
commit 1cefa8f1064c80351cef09307b25bb274abd4e24
Author: Steffen Moeller <moeller at debian.org>
Date:   Sat Apr 18 13:51:13 2009 +0200

    Introduced --no-partitioning flag.
    
    This flag informs the "all" target to skip the partitioning.

diff --git a/install.sh b/install.sh
index 92cbf94..efa322c 100755
--- a/install.sh
+++ b/install.sh
@@ -76,6 +76,7 @@ MOUNT_PROC=""
 
 # internal variables
 intern_instdir_already_present="" 
+intern_no_partitioning=""
 
 # cdebootstrap options
 # with packages for a basic debian with network connectivity
@@ -335,6 +336,8 @@ OPTIONS
                      sets the HOSTNAME variable
 	--mount-proc
                      mounts /proc directory in Debian chroot
+	-np|--no-partitioning
+                     disable the partitioning when otherwise doing "all"
 	--part1-fs <vfat|ext2|ext3>
                      sets the SD_PART1_FS variable
 	--part1-size <megabytes>
@@ -1388,6 +1391,9 @@ do
                         assignParametername="$i"
                         assignVariablename="HOSTNAME"
 			;;
+		 "--no-partitioning")
+			intern_no_partitioning="true"
+			;;
 		 "--part1-fs")
                         assignParametername="$i"
 			assignVariablename="SD_PART1_FS"
@@ -1415,7 +1421,11 @@ do
 		 "all")
 			action_testing
 			action_time
-			action_partition
+			if [ -n "$intern_no_partitioning" ]; then
+				echo " * Skipping partitioning since --no-partitioning flag set"
+			else
+				action_partition
+			fi
 			action_format
 			action_mount
 			action_debian

-- 
Various non-packaged files



More information about the pkg-fso-commits mailing list