1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
339 B

#!/usr/bin/env bash
set -x
CHROOT_DIRECTORY=temp_chroot_dir
IMAGE_NAME=riscyroutes-"$@"-$(date +'%Y-%m-%d').img
rm -rf out/
virt-make-fs --partition=gpt --type=ext4 --size=16G ${CHROOT_DIRECTORY} ${IMAGE_NAME}
sha512sum --tag ${IMAGE_NAME} > SHA512SUMS
mkdir out
mv ${IMAGE_NAME} SHA512SUMS out/
chown -vR $(logname):$(logname) out/