restartcheck/opkg: add NILRT "sysapi" reboot support #47722
What does this PR do?
Adds reboot detection to restartcheck when NILinuxRT "System API" plugins are installed by the package manager. More details in the commit message & function docstrings.
Restartcheck asks for reboots on NILinuxRT when a new type of packages gets installed.
Commits signed with GPG?
The text was updated successfully, but these errors were encountered:
The code was originally written with only kernel modules triggering system reboots, but it turns out other components within NILinuxRT need this functionality, so abstract out the reboot state logic so it's not kernel-module specific anymore. The abstracted logic basically functions the same as before: Packages modify a specific file on disk which gets its md5sum & timestamp stored under NILRT_RESTARTCHECK_STATE_PATH. The state files in turn are checked using restartcheck's new _file_changed_nilrt() function. Now we just call the generic _file_changed_nilrt() both for kernel modules and sysapi and anything else we might need in the future. Signed-off-by: Ioan-Adrian Ratiu <firstname.lastname@example.org>