This is a standard defined in Debian/Ubuntu, and thus used by their motd/profiles and the PackageKit APTCC backend to notify users about updates which requires a reboot to take effect.
To adapt this to AOSC OS, several things must be done:
Start tasking some packages with creating /var/run/reboot-required in postinst.
Autobuild3 task: A switch to automatically append this operation?
bash-config/aosc-aaa: detect the file and output a notification.
This is a standard defined in Debian/Ubuntu, and thus used by their motd/profiles and the PackageKit APTCC backend to notify users about updates which requires a reboot to take effect.
To adapt this to AOSC OS, several things must be done:
/var/run/reboot-required
inpostinst
.