From 18215b8d64c9bf653619b9eb9907445e225adf11 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Wed, 6 Mar 2019 09:23:27 -0800 Subject: create-image.sh: Fix "full" package list The list of packages to install is comma-separated, not space. This fixes the "-f full" argument to actually install the expected packages. --- tools/create-image.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/create-image.sh') diff --git a/tools/create-image.sh b/tools/create-image.sh index 0ecfdaab0..77679615d 100755 --- a/tools/create-image.sh +++ b/tools/create-image.sh @@ -7,7 +7,6 @@ set -eux # Create a minimal Debian distribution in a directory. -ADDITIONAL_PACKAGE="make sysbench git vim tmux usbutils" DIR=chroot # Variables affected by options @@ -59,12 +58,12 @@ while true; do done if [ $FEATURE = "full" ]; then - ADD_PACKAGE=$ADDITIONAL_PACKAGE + ADD_PACKAGE=",make,sysbench,git,vim,tmux,usbutils" fi sudo rm -rf $DIR mkdir -p $DIR -sudo debootstrap --include=openssh-server,curl,tar,gcc,libc6-dev,time,strace,sudo,less,psmisc,selinux-utils,policycoreutils,checkpolicy,selinux-policy-default $ADD_PACKAGE $RELEASE $DIR +sudo debootstrap --include=openssh-server,curl,tar,gcc,libc6-dev,time,strace,sudo,less,psmisc,selinux-utils,policycoreutils,checkpolicy,selinux-policy-default"$ADD_PACKAGE" $RELEASE $DIR # Set some defaults and enable promtless ssh to the machine for root. sudo sed -i '/^root/ { s/:x:/::/ }' $DIR/etc/passwd -- cgit mrf-deployment