2019-03-11 00:35:19 -07:00
|
|
|
|
#!/usr/bin/env bash
|
2023-05-03 19:52:06 +02:00
|
|
|
|
set -Eeuo pipefail
|
2023-03-27 19:23:50 +02:00
|
|
|
|
|
2023-11-29 18:07:41 +01:00
|
|
|
|
echo "❯ Starting Virtual DSM for Docker v$(</run/version)..."
|
2023-11-15 19:58:51 +01:00
|
|
|
|
echo "❯ For support visit https://github.com/vdsm/virtual-dsm/"
|
2023-05-11 17:23:40 +02:00
|
|
|
|
|
2023-11-15 20:54:51 +01:00
|
|
|
|
cd /run
|
|
|
|
|
|
2023-11-16 21:57:43 +01:00
|
|
|
|
. reset.sh # Initialize system
|
|
|
|
|
. install.sh # Run installation
|
|
|
|
|
. disk.sh # Initialize disks
|
|
|
|
|
. network.sh # Initialize network
|
|
|
|
|
. gpu.sh # Initialize graphics
|
|
|
|
|
. serial.sh # Initialize serialport
|
|
|
|
|
. power.sh # Configure shutdown
|
|
|
|
|
. config.sh # Configure arguments
|
2023-04-21 10:38:06 +02:00
|
|
|
|
|
2023-05-03 18:12:11 +02:00
|
|
|
|
trap - ERR
|
|
|
|
|
|
2023-04-10 21:05:34 +02:00
|
|
|
|
set -m
|
|
|
|
|
(
|
2023-05-25 20:41:30 +02:00
|
|
|
|
[[ "${DEBUG}" == [Yy1]* ]] && info "$VERS" && set -x
|
2023-11-15 19:58:51 +01:00
|
|
|
|
qemu-system-x86_64 ${ARGS:+ $ARGS} & echo $! > "${QEMU_PID}"
|
2023-05-02 01:24:03 +02:00
|
|
|
|
{ set +x; } 2>/dev/null
|
2023-04-10 21:05:34 +02:00
|
|
|
|
)
|
|
|
|
|
set +m
|
|
|
|
|
|
2023-11-15 19:58:51 +01:00
|
|
|
|
tail --pid "$(cat "${QEMU_PID}")" --follow /dev/null & wait $!
|