Source installer

This commit is contained in:
Kroese 2023-04-14 01:20:24 +02:00
parent 59de0141dc
commit fbb51b61c8

13
run.sh
View File

@ -1,25 +1,22 @@
#!/usr/bin/env bash
set -eu
if /run/install.sh; then
echo "Starting Virtual DSM..."
else
echo "Installation failed (code $?)" && exit 81
fi
source /run/disk.sh
. /run/install.sh
. /run/disk.sh
[ -z "${KVM_DISK_OPTS}" ] && echo "Error: Failed to setup disks..." && exit 83
source /run/network.sh
. /run/network.sh
[ -z "${KVM_NET_OPTS}" ] && echo "Error: Failed to setup network..." && exit 84
source /run/serial.sh
. /run/serial.sh
[ -z "${KVM_SERIAL_OPTS}" ] && echo "Error: Failed to setup serial..." && exit 85
source /run/power.sh
. /run/power.sh
[ -z "${KVM_MON_OPTS}" ] && echo "Error: Failed to setup monitor..." && exit 87