Skip to content

Commit

Permalink
Unset GRUB_FORCE_PARTUUID when rebuilding Grub configuration
Browse files Browse the repository at this point in the history
Leaving this variable set will force boot without an initrd, which is necessary
to resume in some scenarios.
  • Loading branch information
L. Pereira committed Oct 28, 2021
1 parent b6f13fb commit a27aba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hibernation-setup-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ static bool update_kernel_cmdline_params_for_grub(

fprintf(resume_cfg, "\n# hibernation-setup-tool:start\n");
fprintf(resume_cfg, "GRUB_CMDLINE_LINUX_DEFAULT=\"$GRUB_CMDLINE_LINUX_DEFAULT %s\"\n", args);
fprintf(resume_cfg, "unset GRUB_FORCE_PARTUUID\n");
fprintf(resume_cfg, "# hibernation-setup-tool:end\n");

fclose(resume_cfg);
Expand Down

0 comments on commit a27aba8

Please sign in to comment.