From 3b4b021c9a6f489a819ca8c93407452a57f515b4 Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Sun, 8 Oct 2023 12:01:25 -0400
Subject: [PATCH] Update update-lxcs.sh

display hostname of containers that require a reboot
---
 misc/update-lxcs.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/misc/update-lxcs.sh b/misc/update-lxcs.sh
index 1254b454..e1b810da 100644
--- a/misc/update-lxcs.sh
+++ b/misc/update-lxcs.sh
@@ -93,7 +93,9 @@ for container in $(pct list | awk '{if(NR>1) print $1}'); do
       update_container $container
     fi
     if pct exec "$container" -- [ -e "/var/run/reboot-required" ]; then
-        containers_needing_reboot+=("$container")
+        # Get the container's hostname and add it to the list
+        container_hostname=$(pct exec "$container" hostname)
+        containers_needing_reboot+=("$container - $container_hostname")
     fi
   fi
 done