1.1 --- a/makesd-format Mon May 27 23:58:01 2019 +0200
1.2 +++ b/makesd-format Tue May 28 00:01:48 2019 +0200
1.3 @@ -62,14 +62,9 @@
1.4 cat 1>&2 <<EOF
1.5 Usage: $PROGNAME
1.6
1.7 -The input for this program is supplied via standard input as a partitioning
1.8 -summary with each line providing a collection of tab-separated values. These
1.9 -values appear in the following order:
1.10 -
1.11 -<start> <size> <type>
1.12 -
1.13 -Only the type value is employed by this program. Types recognised include ext,
1.14 -ext2, ext3, ext4, fat and swap.
1.15 +The input for this program is supplied via standard input as a list of partition
1.16 +types, one per line. Types recognised include ext, ext2, ext3, ext4, fat and
1.17 +swap.
1.18 EOF
1.19 exit 0
1.20 fi
1.21 @@ -78,9 +73,11 @@
1.22
1.23 check_device
1.24
1.25 +# Read partition types, one per line.
1.26 +
1.27 PARTNUM=1
1.28
1.29 -while read_fields ; do
1.30 +while read TYPE ; do
1.31 DEVICE="${DEV}${PARTNUM}"
1.32 format "$DEVICE" "$TYPE"
1.33 PARTNUM=$(($PARTNUM + 1))