diff options
author | Milton Miller <miltonm@us.ibm.com> | 2016-06-15 16:02:23 -0500 |
---|---|---|
committer | Milton Miller <miltonm@us.ibm.com> | 2016-06-30 14:46:43 -0500 |
commit | 2ef727d0fe91d43843503c791ca3f06d75d8b122 (patch) | |
tree | a63525f0a8765c1d7f1e83c7e4c27537ee2fe0a0 | |
parent | bfb33b53d01b3e3db2e2b52b2bff622367c08804 (diff) | |
download | talos-openbmc-2ef727d0fe91d43843503c791ca3f06d75d8b122.tar.gz talos-openbmc-2ef727d0fe91d43843503c791ca3f06d75d8b122.zip |
initfs: update: add --help message
Now that update is intended for use at runtime and not just by
the init and shutdown scripts, add a short help message listing
the options so people don't have to understand how to read shell.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
-rwxr-xr-x | meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh index fa46635a5..268c6ad0e 100755 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh @@ -106,6 +106,24 @@ image=/run/initramfs/image- while test "$1" != "${1#-}" do case "$1" in + --help) + cat <<HERE +Usage: $0 [options] -- Write images in /run/initramfs to flash (/dev/mtd*) + --help Show this message + --no-flash Don't attempt to write images to flash + --ignore-size Don't compare image size to mtd device size + --ignore-mount Don't check if destination is mounted + --save-files Copy whitelisted files to save directory in RAM + --no-save-files Don't copy whitelisted files to save directory + --copy-files Copy files from save directory to rwfs mountpoint + --restore-files Restore files from save directory to rwfs layer + --no-restore-files Don't restore saved files from ram to rwfs layer + --clean-saved-files Delete saved whitelisted files from RAM + --no-clean-saved-files Retain saved whitelisted files in RAM +HERE + + exit 0 ;; + --no-clean-saved-files) doclean= shift ;; @@ -138,7 +156,7 @@ do toram=y shift ;; *) - echoerr "Unknown option $1" + echoerr "Unknown option $1. Try $0 --help." exit 1 ;; esac done |