Commit 1f731313 authored by Natanael Copa's avatar Natanael Copa

setup-disk: improve the usage help text

Thanks to Jim Pryor for the very useful feedback.
parent 0832ceae
...@@ -825,7 +825,7 @@ ask_disk() { ...@@ -825,7 +825,7 @@ ask_disk() {
usage() { usage() {
cat <<__EOF__ cat <<__EOF__
usage: setup-disk [-hqr] [-k kernelflavor] [-m MODE] [-o apkovl] [-s SWAPSIZE] usage: setup-disk [-hLqrv] [-k kernelflavor] [-m MODE] [-o apkovl] [-s SWAPSIZE]
[MOUNTPOINT | DISKDEV...] [MOUNTPOINT | DISKDEV...]
Install alpine on harddisk. Install alpine on harddisk.
...@@ -839,14 +839,15 @@ mode than 2 disks, then use raid level 5 instead of raid level 1. ...@@ -839,14 +839,15 @@ mode than 2 disks, then use raid level 5 instead of raid level 1.
options: options:
-h Show this help -h Show this help
-m Use disk for MODE without asking, where MODE is either 'data' or 'root' -m Use disk for MODE without asking, where MODE is either 'data' or 'sys'
-o Restore system from given apkovl file -o Restore system from given apkovl file
-k Use kernelflavor instead of $KERNEL_FLAVOR -k Use kernelflavor instead of $KERNEL_FLAVOR
-L Use LVM to manage partitions -L Use LVM to manage partitions
-q Exit quietly if no disks are found -q Exit quietly if no disks are found
-r Enable software raid1 with single disk -r Enable software raid1 with single disk
-s Use SWAPSIZE MB instead of $SWAP_SIZE MB for swap (Use 0 to disable swap) -s Use SWAPSIZE MB instead of autodetecting swap size (Use 0 to disable swap)
-v Be more verbose about what is happening -v Be more verbose about what is happening
__EOF__ __EOF__
exit 1 exit 1
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment