Update message to remind users to re-run script

This commit is contained in:
Melissa LeBlanc-Williams 2021-03-05 11:58:56 -08:00
parent 073b68ef18
commit e0dfd7f9bb

View file

@ -503,7 +503,9 @@ class Shell:
def check_kernel_update_reboot_required(self):
"""Checks if the pi needs to be rebooted since the last kernel update"""
if not self.exists("/lib/modules/{}".format(self.release())):
self.error("OS has not been rebooted since last kernel update.")
self.error(
"OS has not been rebooted since last kernel update. Please reboot and re-run the script"
)
self.prompt_reboot()
# pylint: enable=invalid-name