summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Abraham <thomas.abraham@arm.com>2019-01-18 14:13:40 +0530
committerThomas Abraham <thomas.abraham@arm.com>2019-02-18 18:21:23 +0530
commit74ec115667163bd59e48db60c0ad1621cb79a10f (patch)
tree6a7ecd89b06e02ede1c835ac1e466be1330bae01
parentbd2b1bbe948c6b50915d21358afd573fd09ebc7f (diff)
sgi/distro: rename the existing distro install and boot script
The existing script that supports both distribution install and boot is name as 'distro_boot.sh'. Since it supports distribution install as well, it is being renamed as 'distro.sh'. Change-Id: I89462125685c13c66a34b05e75232f6bbd0d3198 Signed-off-by: Thomas Abraham <thomas.abraham@arm.com>
-rwxr-xr-xsgi/distro.sh (renamed from sgi/distro_boot.sh)43
1 files changed, 18 insertions, 25 deletions
diff --git a/sgi/distro_boot.sh b/sgi/distro.sh
index 2bc7cd2..15455a1 100755
--- a/sgi/distro_boot.sh
+++ b/sgi/distro.sh
@@ -82,36 +82,29 @@ boot ()
print_usage ()
{
- echo "distro_boot:"
echo ""
- echo " Install or boot Linux distos on System Guidance Models."
+ echo "Install or boot linux distribution on SGI platforms"
+ echo "Usage: ./distro.sh -p <platform> -i <image> -s <disk size> [-d <disk image>] [-n <true|false>] [-a \"model params\"]"
echo ""
- echo "distro_boot -p [platform] -i [image] -s [disk size] -d [ disk image]"
- echo " -p - SGI platform name"
- echo " -i - Image, takes a path to an iso installer image"
- echo " -s - Disk size in GB."
- echo " -d - Disk image with previously installed distro, used for"
- echo " disambiguation if there are more than one installed"
- echo " concurrently"
- echo " -n - Enable network: true or (default)false"
- echo " -a - Additional model parameters, if any"
+ echo "Supported command line parameters:"
+ echo " -p SGI platform name (mandatory)"
+ echo " -i Image, takes a path to an iso installer image (mandatory for installation)"
+ echo " -s Disk size in GB (mandatory for installation)"
+ echo " -d Disk image with previously installed distro, used for"
+ echo " disambiguation if there are more than one installed"
+ echo " concurrently."
+ echo " -n Enable network: true or false (default: false)"
+ echo " -a Additional model parameters, if any"
echo ""
- echo " distro_boot must be called either with both -i and -s options or"
- echo " with neither, please see examples below"
- echo ""
- echo "Examples:"
- echo ""
- echo " Install Fedora 27 on to a 16 GB disk"
- echo ""
- echo " distro_boot -p sgi575 -i Fedora-Server-dvd-aarch64-27-1.6.iso -s 16"
- echo ""
- echo " Boot existing single install"
- echo ""
- echo " distro_boot -p sgi575"
+ __print_supported_sgi_platforms
+ echo "Example 1: ./distro.sh -p sgi575 -i Fedora-Server-dvd-aarch64-27-1.6.iso -s 16"
+ echo " Installs Fedora 27 on to a 16 GB disk."
echo ""
- echo " Boot existing install from a set of intalled disks"
+ echo "Example 2: ./distro.sh -p sgi575"
+ echo " Finds an available installed disk image and boots from it."
echo ""
- echo " distro_boot -p sgi575 -d bluepeter.satadisk"
+ echo "Example 3: ./distro.sh -p sgi575 -d fedora27.satadisk"
+ echo " Boot from an existing installed disk image"
echo ""
}