diff --git a/container-entrypoint b/container-entrypoint index 2536bd0..7f465e9 100755 --- a/container-entrypoint +++ b/container-entrypoint @@ -40,7 +40,7 @@ fi if [ -n "$1" ]; then case "$1" in - build|checkout|for-all-repos|menu|shell|-*) + build|checkout|dump|for-all-repos|menu|shell|-*) # SC2086: Double quote to prevent globbing and word splitting. # shellcheck disable=2086 exec $GOSU kas "$@" diff --git a/kas-container b/kas-container index 462dfa0..50f215b 100755 --- a/kas-container +++ b/kas-container @@ -29,13 +29,16 @@ set -e usage() { - printf "%b" "Usage: $0 [OPTIONS] { build | checkout | shell } [KASOPTIONS] [KASFILE]\n" + printf "%b" "Usage: $0 [OPTIONS] { build | shell } [KASOPTIONS] [KASFILE]\n" + printf "%b" " $0 [OPTIONS] { checkout | dump } [KASOPTIONS] [KASFILE]\n" printf "%b" " $0 [OPTIONS] for-all-repos [KASOPTIONS] [KASFILE] COMMAND\n" printf "%b" " $0 [OPTIONS] { clean | cleansstate | cleanall}\n" printf "%b" " $0 [OPTIONS] menu [KCONFIG]\n" printf "%b" "\nPositional arguments:\n" printf "%b" "build\t\t\tCheck out repositories and build target.\n" printf "%b" "checkout\t\tCheck out repositories but do not build.\n" + printf "%b" "dump\t\t\tCheck out repositories and write flat version\n" + printf "%b" " \t\t\tof config to stdout.\n" printf "%b" "shell\t\t\tRun a shell in the build environment.\n" printf "%b" "for-all-repos\t\tRun specified command in each repository.\n" printf "%b" "clean\t\t\tClean build artifacts, keep sstate cache and " \ @@ -265,7 +268,7 @@ while [ $# -gt 0 ]; do shift 1 break ;; - build|checkout|for-all-repos|menu) + build|checkout|dump|for-all-repos|menu) KAS_REPO_MOUNT_OPT_DEFAULT="ro" KAS_CMD=$1 shift 1