1.1 --- a/makesd Sat May 25 18:20:40 2019 +0200
1.2 +++ b/makesd Sat May 25 23:38:04 2019 +0200
1.3 @@ -6,6 +6,7 @@
1.4 THISDIR=`dirname "$0"`
1.5
1.6 COMMON="$THISDIR/makesd-common"
1.7 +DEFS="$THISDIR/makesd-defs"
1.8 EXPAND="$THISDIR/makesd-expand-def"
1.9 FORMAT="$THISDIR/makesd-format"
1.10 PARTSUMMARY="$THISDIR/makesd-partition-summary"
1.11 @@ -20,17 +21,28 @@
1.12 if [ "$1" = '--help' ] ; then
1.13 cat 1>&2 <<EOF
1.14 Usage: $PROGNAME [ --align ] <definition name>
1.15 + $PROGNAME -a | --all | --defs
1.16
1.17 Partition, format, populate and initialise a device for use with a particular
1.18 kind of hardware. The given definition name is used to search the database of
1.19 supported hardware devices and to configure the different preparation
1.20 activities.
1.21
1.22 +If the -a, --all or --defs options are specified, all hardware definitions are
1.23 +emitted and no further actions are taken.
1.24 +
1.25 $(align_cylinder_description)
1.26 EOF
1.27 exit 0
1.28 fi
1.29
1.30 +# Test for the definition output options.
1.31 +
1.32 +if [ "$1" = '-a' ] || [ "$1" = '--all' ] || [ "$1" = '--defs' ] ; then
1.33 + grep '^[[:alpha:]]' "$DEFS" | cut -f1 | sort
1.34 + exit 0
1.35 +fi
1.36 +
1.37 # Obtain details of the selected device.
1.38
1.39 check_device