mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 08:42:42 +01:00
* feat: Cache location * feat: Cache location * feat: Add support URL * feat: Cache location * fix: Remove files * feat: Reset filesystem * fix: Exit when PID is missing * fix: Counter file * fix: Check flags * docs: Readme * feat: Cleanup files * fix: Check flags * fix: Check flags * fix: Initialization * fix: Initalization * fix: Initialization * fix: Cleanup temp * fix: Initialize system * feat: Config system * feat: Configure system * fix: Variables * fix: Variables * fix: Error handling * style: Comments * fix: Returnvalue * fix: Returnvalue * fix: Returnvalue * fix: Returnvalue * fix: Returnvalue * docs: Multi-disk support * feat: Use cached location * fix: Swap order
27 lines
724 B
Bash
Executable File
27 lines
724 B
Bash
Executable File
#!/usr/bin/env bash
|
||
set -Eeuo pipefail
|
||
|
||
echo "❯ Starting Virtual DSM for Docker v${VERSION}..."
|
||
echo "❯ For support visit https://github.com/vdsm/virtual-dsm/"
|
||
|
||
. /run/reset.sh # Initialize system
|
||
. /run/install.sh # Run installation
|
||
. /run/disk.sh # Initialize disks
|
||
. /run/network.sh # Initialize network
|
||
. /run/gpu.sh # Initialize graphics
|
||
. /run/serial.sh # Initialize serialport
|
||
. /run/power.sh # Configure shutdown
|
||
. /run/config.sh # Configure arguments
|
||
|
||
trap - ERR
|
||
|
||
set -m
|
||
(
|
||
[[ "${DEBUG}" == [Yy1]* ]] && info "$VERS" && set -x
|
||
qemu-system-x86_64 ${ARGS:+ $ARGS} & echo $! > "${QEMU_PID}"
|
||
{ set +x; } 2>/dev/null
|
||
)
|
||
set +m
|
||
|
||
tail --pid "$(cat "${QEMU_PID}")" --follow /dev/null & wait $!
|