aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create-image.sh
diff options
context:
space:
mode:
authorAlexander Popov <alex.popov@linux.com>2024-05-02 16:19:48 +0300
committerDmitry Vyukov <dvyukov@google.com>2024-05-03 12:12:18 +0000
commit25f385e1265b1da418ca710cef51c4426f6e2589 (patch)
tree10c5303c553cf378dc2770336ea1c99f4a2a1f16 /tools/create-image.sh
parentb385c6f4c3087f54a49d5dd38705a67133d07a87 (diff)
tools/create-image.sh: allow working with multiple images
Currently, the `create-image.sh` script prepares the image in the `./chroot` directory. Let's do that in the `$RELEASE` directory. That allows having multiple debootstrap images at the same time. Signed-off-by: Alexander Popov <alex.popov@linux.com>
Diffstat (limited to 'tools/create-image.sh')
-rwxr-xr-xtools/create-image.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/create-image.sh b/tools/create-image.sh
index 9e4fe95bb..d73b8eeb2 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.
-DIR=chroot
PREINSTALL_PKGS=openssh-server,curl,tar,gcc,libc6-dev,time,strace,sudo,less,psmisc,selinux-utils,policycoreutils,checkpolicy,selinux-policy-default,firmware-atheros,debian-ports-archive-keyring
# If ADD_PACKAGE is not defined as an external environment variable, use our default packages
@@ -128,6 +127,7 @@ if [ $FEATURE = "full" ]; then
PREINSTALL_PKGS=$PREINSTALL_PKGS","$ADD_PACKAGE
fi
+DIR=$RELEASE
sudo rm -rf $DIR
sudo mkdir -p $DIR
sudo chmod 0755 $DIR