Disable Windows VM restart at boot
This commit is contained in:
@@ -199,7 +199,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- $HOME/.windows:/storage
|
- $HOME/.windows:/storage
|
||||||
- $HOME/Windows:/shared
|
- $HOME/Windows:/shared
|
||||||
restart: unless-stopped
|
restart: "no"
|
||||||
stop_grace_period: 2m
|
stop_grace_period: 2m
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh"
|
||||||
|
|
||||||
|
windows_vm_command="$ROOT/bin/omarchy-windows-vm"
|
||||||
|
|
||||||
|
rg -q '^ restart: "no"$' "$windows_vm_command" ||
|
||||||
|
fail "Windows VM uses manual startup by default"
|
||||||
|
pass "Windows VM uses manual startup by default"
|
||||||
|
|
||||||
|
if rg -q '^ restart: unless-stopped$' "$windows_vm_command"; then
|
||||||
|
fail "Windows VM does not restart automatically at boot"
|
||||||
|
fi
|
||||||
|
pass "Windows VM does not restart automatically at boot"
|
||||||
Reference in New Issue
Block a user