Check agent version

This commit is contained in:
Kroese 2023-04-17 03:30:34 +02:00 committed by GitHub
parent 76ae12575b
commit 90ee437ae4

View File

@ -80,6 +80,14 @@ if [ ! -f "${DATA}" ]; then
fi fi
AGENT="${STORAGE}/${BASE}.agent"
[ ! -f "$AGENT" ] && echo "1" > "$AGENT"
AGENT_VERSION=$(cat "${AGENT}")
if ((AGENT_VERSION < 3)); then
echo "INFO: The installed Guest Agent is outdated, please consider updating it or do a clean install."
fi
KVM_DISK_OPTS="\ KVM_DISK_OPTS="\
-device virtio-scsi-pci,id=hw-synoboot,bus=pcie.0,addr=0xa \ -device virtio-scsi-pci,id=hw-synoboot,bus=pcie.0,addr=0xa \
-drive file=${BOOT},if=none,id=drive-synoboot,format=raw,cache=none,aio=native,discard=on,detect-zeroes=on \ -drive file=${BOOT},if=none,id=drive-synoboot,format=raw,cache=none,aio=native,discard=on,detect-zeroes=on \