mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-12-14 22:30:33 +08:00
Fixes
This commit is contained in:
21
run.sh
21
run.sh
@@ -2,15 +2,14 @@
|
||||
|
||||
set -eu
|
||||
|
||||
/run/server.sh 5000 "<HTML><BODY><H1><CENTER>Please wait while Synology is installing...</CENTER></H1></BODY></HTML>" > /dev/null &
|
||||
/run/server.sh 5000 > /dev/null &
|
||||
|
||||
if [ ! /run/install.sh ]; then
|
||||
echo "Installation failed!"
|
||||
exit 2
|
||||
if /run/install.sh; then
|
||||
echo "Starting DSM for Docker..."
|
||||
else
|
||||
echo "Installation failed (code $?)" && exit 2
|
||||
fi
|
||||
|
||||
echo "Booting Synology DSM for Docker..."
|
||||
|
||||
# A bridge of this name will be created to host the TAP interface created for
|
||||
# the VM
|
||||
QEMU_BRIDGE='qemubr0'
|
||||
@@ -75,8 +74,16 @@ GUEST_SERIAL=$(/run/serial.sh)
|
||||
# Stop the webserver
|
||||
pkill -f server.sh
|
||||
|
||||
[ ! -e /dev/fuse ] && echo "Error: FUSE interface not available..." && exit 2
|
||||
[ ! -e /dev/net/tun ] && echo "Error: TUN interface not available..." && exit 2
|
||||
|
||||
if [ -e /dev/kvm ] && sh -c 'echo -n > /dev/kvm' &> /dev/null; then
|
||||
echo "Booting DSM image..."
|
||||
else
|
||||
echo "Error: KVM not available..." && exit 2
|
||||
fi
|
||||
|
||||
IMG="/storage"
|
||||
echo "Booting OS..."
|
||||
|
||||
# Configure QEMU for graceful shutdown
|
||||
|
||||
|
||||
Reference in New Issue
Block a user