diff options
| author | Dongliang Mu <mudongliangabcd@gmail.com> | 2019-03-01 00:29:44 -0500 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-03-01 06:29:44 +0100 |
| commit | 8a4b3a6b657c1942244ec75c5fec3f764df84301 (patch) | |
| tree | 7a7abca4935e903d43f71d829e9288d9d34a1836 /tools | |
| parent | 8845b00e1e838abd7c5d002ba04711b9b35d8877 (diff) | |
tweak create-image.sh script and modify document about its deployment (#1022)
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/create-image.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/create-image.sh b/tools/create-image.sh index 57f960429..0ecfdaab0 100755 --- a/tools/create-image.sh +++ b/tools/create-image.sh @@ -7,8 +7,11 @@ set -eux # Create a minimal Debian distribution in a directory. -RELEASE=stretch +ADDITIONAL_PACKAGE="make sysbench git vim tmux usbutils" DIR=chroot + +# Variables affected by options +RELEASE=stretch FEATURE=minimal ADD_PACKAGE="" PERF=false @@ -18,6 +21,7 @@ display_help() { echo echo " -d, --distribution Set on which debian distribution to create" echo " -f, --feature Check what packages to install in the image, options are minimal, full" + echo " -h, --help Display help message" echo " -p, --add-perf Add perf support with this option enabled. Please set envrionment variable \$KERNEL at first" echo } @@ -55,7 +59,7 @@ while true; do done if [ $FEATURE = "full" ]; then - ADD_PACKAGE="make sysbench git vim tmux usbutils" + ADD_PACKAGE=$ADDITIONAL_PACKAGE fi sudo rm -rf $DIR |
