ensure /etc/machine-id exists for persistent fingerprint in install-agent.sh

This commit is contained in:
henrygd
2025-07-30 14:25:41 -04:00
parent 7282044f80
commit 39dbe0eac5

View File

@@ -453,6 +453,11 @@ set_selinux_context
# Cleanup
rm -rf "$TEMP_DIR"
# Make sure /etc/machine-id exists for persistent fingerprint
if [ ! -f /etc/machine-id ]; then
cat /proc/sys/kernel/random/uuid | tr -d '-' > /etc/machine-id
fi
# Check for NVIDIA GPUs and grant device permissions for systemd service
detect_nvidia_devices() {
local devices=""