From 8a4b3a6b657c1942244ec75c5fec3f764df84301 Mon Sep 17 00:00:00 2001 From: Dongliang Mu Date: Fri, 1 Mar 2019 00:29:44 -0500 Subject: tweak create-image.sh script and modify document about its deployment (#1022) --- tools/create-image.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools') 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 -- cgit mrf-deployment