init
This commit is contained in:
commit
297c92a4b0
86 changed files with 1252 additions and 0 deletions
34
build.sh
Executable file
34
build.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
cd "$(dirname "$(realpath "$0")")"
|
||||
|
||||
alias log='echo [build.sh]'
|
||||
|
||||
|
||||
log "creating iso"
|
||||
# sudo rm -fr tmp
|
||||
# mkdir -p tmp output
|
||||
# sudo mkarchiso -v -w $PWD/tmp/wdir -r -o $PWD/output $PWD/profile
|
||||
# mv output/archlinux-2024.02.19-x86_64.iso output/install.iso
|
||||
|
||||
|
||||
VM_NAME="epitls_build"
|
||||
|
||||
|
||||
if VBoxManage showvminfo $VM_NAME 2> /dev/null
|
||||
then log "disposing old VM"
|
||||
VBoxManage unregistervm $VM_NAME --delete-all
|
||||
fi
|
||||
|
||||
|
||||
log "creating VM"
|
||||
VBoxManage createvm --name=$VM_NAME --register
|
||||
|
||||
|
||||
log "running VM with iso"
|
||||
virtualboxvm --startvm $VM_NAME --dvd output/install.iso
|
||||
|
||||
|
||||
log "disposing VM"
|
||||
VBoxManage unregistervm $VM_NAME --delete-all
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue