Applied the same changes made to my other Haiku OS image

This commit is contained in:
Héctor Molinero Fernández
2021-10-31 13:07:59 +01:00
parent 1fd9c253a0
commit 49e2d5e9ef
5 changed files with 36 additions and 50 deletions

11
scripts/bin/container-init Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
set -eu
# Create ReactOS disk
if [ ! -f /var/lib/qemu/images/reactos.img ]; then
qemu-img create -f qcow2 /var/lib/qemu/images/reactos.img "${VM_DISK_SIZE:?}"
fi
# Start all services
exec runsvdir -P /etc/service/