Allow for gracefull shutdows

NOTE: This only works on fresh installs. If you want to convert an existing installation to use this feature, you need to update /usr/local/bin/agent.sh on the guest and /storage/agent.ver on the host.
This commit is contained in:
Kroese
2023-04-10 21:05:34 +02:00
parent 70138041b7
commit b65d7b11c2
4 changed files with 61 additions and 23 deletions
+3
View File
@@ -137,6 +137,9 @@ fi
rm -rf $MOUNT
# Store agent version
echo "2" > "$IMG"/agent.ver
mv -f "$BOOT" "$IMG"/"$BASE".boot.img
mv -f "$SYSTEM" "$IMG"/"$BASE".system.img