From 25f385e1265b1da418ca710cef51c4426f6e2589 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 2 May 2024 16:19:48 +0300 Subject: 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 --- tools/create-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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 -- cgit mrf-deployment