From c41c00e2a31648f18c183261eb9f3324c10bf03c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 6 May 2011 06:05:30 +0200 Subject: add no format option --- scripts/install.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'scripts/install.sh') diff --git a/scripts/install.sh b/scripts/install.sh index 7b3b5bc4d..1224319ae 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash #- -# Copyright © 2010 +# Copyright © 2010, 2011 # Waldemar Brodkorb # Thorsten Glaser # @@ -70,6 +70,7 @@ TOPDIR=$(realpath .) ostype=$(uname -s) cfgfs=1 +noformat=0 quiet=0 serial=0 speed=115200 @@ -78,13 +79,13 @@ panicreboot=10 function usage { cat >&2 < 5 )); then print -u2 "$me: -c $OPTARG out of bounds" @@ -102,6 +103,7 @@ while getopts "c:hp:qs:t" ch; do exit 1 fi speed=$OPTARG ;; + (n) noformat=1 ;; (t) serial=1 ;; (+t) serial=0 ;; (*) usage 1 ;; @@ -330,9 +332,9 @@ fi (( quiet )) || print "Creating ext2fs on ${part}..." q= (( quiet )) && q=-q -mke2fs $q "$part" +(( noformat )) || mke2fs $q "$part" partuuid=$(tune2fs -l "$part" | sed -n '/^Filesystem UUID:[ ]*/s///p') -tune2fs -c 0 -i 0 "$part" +(( noformat )) || tune2fs -c 0 -i 0 "$part" (( quiet )) || print Extracting installation archive... mount_ext2fs "$part" "$T" -- cgit v1.2.3