Skip to content

Commit

Permalink
Add a reboot command
Browse files Browse the repository at this point in the history
This will help to achieve a fully automated installation.
  • Loading branch information
jan-cerny committed Jul 23, 2024
1 parent fb3fb8a commit f39cff4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/XCCDF_POLICY/xccdf_policy_remediate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,8 @@ static int _xccdf_policy_generate_fix_kickstart(struct oscap_list *rules_to_fix,
const char *profile_id = xccdf_profile_get_id(xccdf_policy_get_profile(policy));
_generate_kickstart_post(&cmds, profile_id, input_file_name, tailoring, output_fd);

_write_text_to_fd(output_fd, "# Reboot after the installation is complete\nreboot\n");

oscap_list_free(cmds.package_install, free);
oscap_list_free(cmds.package_remove, free);
oscap_list_free(cmds.service_enable, free);
Expand Down

0 comments on commit f39cff4

Please sign in to comment.