mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-14 05:53:42 +08:00
fix: Folder structure (#379)
* Moved to src * Moved to src * Moved to src * Moved to src * Moved to src * Moved to src * Moved to src * Moved to src * Moved to src * Moved to src * Moved to src * Moved to src * fix: Check entrypoint * Moved to src * Moved to src * fix: Relative paths * fix: Relative paths * fix: Shellcheck * fix: Relative paths * Test shellcheck * Test shellcheck
This commit is contained in:
28
src/entry.sh
Executable file
28
src/entry.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/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/"
|
||||
|
||||
cd /run
|
||||
|
||||
. 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
|
||||
|
||||
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 $!
|
||||
Reference in New Issue
Block a user