1.1 --- a/makesd-partition Fri May 24 23:17:38 2019 +0200
1.2 +++ b/makesd-partition Sat May 25 01:19:21 2019 +0200
1.3 @@ -10,11 +10,14 @@
1.4 PROGNAME=`basename "$0"`
1.5 THISDIR=`dirname "$0"`
1.6
1.7 +COMMON="$THISDIR/makesd-common"
1.8 EXPAND="$THISDIR/makesd-expand-def"
1.9 PARTSUMMARY="$THISDIR/makesd-partition-summary"
1.10 PARTTABLE="$THISDIR/makesd-partition-table"
1.11 SFDISK="/sbin/sfdisk"
1.12
1.13 +. "$COMMON"
1.14 +
1.15
1.16
1.17 # Test sfdisk behaviour and obtain useful information.
1.18 @@ -32,19 +35,7 @@
1.19
1.20 # Obtain details of the selected device.
1.21
1.22 -if [ ! "$DEV" ] ; then
1.23 - cat 1>&2 <<EOF
1.24 -No device specified. Use the DEV environment variable to indicate a device.
1.25 -EOF
1.26 - exit 1
1.27 -fi
1.28 -
1.29 -if [ ! -e "$DEV" ] ; then
1.30 - cat 1>&2 <<EOF
1.31 -Device not found: $DEV
1.32 -EOF
1.33 - exit 1
1.34 -fi
1.35 +check_device
1.36
1.37 # Test for the cylinder alignment option.
1.38