'Logging hook called whenever a job starts, and again after
any reboot.'

@log.log_and_ignore_errors('post-reboot    sysinfo    error:')
def log_per_reboot_data(self):

    logdir = self._get_boot_subdir(next=True)
    if (not os.path.exists(logdir)):
        os.mkdir(logdir)
    for log in (self.test_loggables | self.boot_loggables):
        log.run(logdir)
    if _LOG_INSTALLED_PACKAGES:
        installed_path = os.path.join(logdir, 'installed_packages')
        installed_packages = ('\n'.join(self.sm.list_all()) + '\n')
        utils.open_write_close(installed_path, installed_packages)
