Skip to content

Commit

Permalink
pdist-bootcheck: Keep sending "update in progress"
Browse files Browse the repository at this point in the history
A synchronous pdist may take some time without anything happening on
the console. At the same time, other messages from systemd might be
emitted, scrolling the original "Update and  reboot required" to a less
prominent place.

Keep sending messages at regular intervals.
  • Loading branch information
donald committed Jul 5, 2023
1 parent e601a90 commit 22e5620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdist/pdist-bootcheck
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ elif [ "$need_pdist_and_reboot" ]; then
rm /var/run/updatecheck.reboot-triggered
exit 1
fi
echo "Update and reboot required. Please be patient..."
echo "Update and reboot required"
while true; do sleep 5; echo "System update in progress. Please be patient..."; done &
netcat $(distmaster) 237
mxgrub default
touch /var/run/updatecheck.reboot-triggered
Expand Down

0 comments on commit 22e5620

Please sign in to comment.