1.1 --- a/makesd-partition-summary Tue May 28 00:01:48 2019 +0200
1.2 +++ b/makesd-partition-summary Tue May 28 00:30:18 2019 +0200
1.3 @@ -96,11 +96,26 @@
1.4
1.5 if [ "$1" = '--help' ] ; then
1.6 cat 1>&2 <<EOF
1.7 -Usage: $PROGNAME ( -f <type> | -p <start position> | -s <size> )...
1.8 +Usage: $PROGNAME <option>...
1.9
1.10 Produce partition descriptions, indicating partition type, start position and
1.11 -size for each partition. Each new occurrence of an active option starts a new
1.12 -partition description.
1.13 +size for each partition. Each new occurrence of an active partitioning option
1.14 +starts a new partition description.
1.15 +
1.16 +Partitioning options are as follows:
1.17 +
1.18 +-f <type> - partition type (ext2, ext3, ext4, fat, swap...)
1.19 +-p <start position> - start position/sector
1.20 +-s <size> - partition size as a percentage of device capacity
1.21 +
1.22 +Alongside partitioning options, the following population options can be given:
1.23 +
1.24 +-b <bootloader> - bootloader payload
1.25 +-c <config> - configuration archive
1.26 +-d <device tree> - device tree binary archive
1.27 +-k <kernel> - kernel payload
1.28 +-m <modules> - kernel modules archive
1.29 +-r <root filesystem> - root filesystem archive
1.30
1.31 Each line of the produced description is tab-separated with '-' indicating an
1.32 empty field.
2.1 --- a/makesd-partition-table Tue May 28 00:01:48 2019 +0200
2.2 +++ b/makesd-partition-table Tue May 28 00:30:18 2019 +0200
2.3 @@ -233,6 +233,8 @@
2.4
2.5 init_sfdisk "$DEV"
2.6
2.7 +# Read and emit partition details.
2.8 +
2.9 while read_fields ; do
2.10 next_partition
2.11 done