I found this:Example (Debian/Ubuntu):On my Ubuntu host I did find the /usr/share/update-notifier/notify-reboot-required script. It is part of the update-notifier-common package in Ubuntu repositories. I can not seem to find a Raspberry Pi OS package that has this file.
Is there some alternative package in a Raspberry Pi OS package that provides this similar notify-reboot functionality?
Thanks
Chris
Code:
To indicate that a Linux package requires a reboot, you can utilize the/usr/share/update-notifier/notify-reboot-required script within the package'spost-installation script (postinst). This script adds a marker file, /var/run/reboot-required,indicating the need for a reboot. Alternatively, some packaging systems, like RPM,leverage the needs-restarting plugin with the -r flag to report reboot requirements. Here's a more detailed explanation:1. Using /usr/share/update-notifier/notify-reboot-required (Debian/Ubuntu): In your package's DEBIAN/postinst script, you can call this script to trigger the reboot notification. The script itself will create or update /var/run/reboot-required and /var/run/reboot-required.pkgs files. The /var/run/reboot-required file is a simple flag indicating a reboot is needed, while /var/run/reboot-required.pkgs might list specific packages that triggered the reboot requirement. Code:
#!/bin/bash# ... (other postinst commands) .../usr/share/update-notifier/notify-reboot-required# ... (more postinst commands) ...Is there some alternative package in a Raspberry Pi OS package that provides this similar notify-reboot functionality?
Thanks
Chris
Statistics: Posted by chriskot870 — Sat Jun 14, 2025 12:00 am