Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Review usage of the reboot marker file #3199

Open
dheyay opened this issue Jul 12, 2024 · 1 comment
Open

Bug: Review usage of the reboot marker file #3199

dheyay opened this issue Jul 12, 2024 · 1 comment
Labels
bug something isn't working triaged

Comments

@dheyay
Copy link
Contributor

dheyay commented Jul 12, 2024

Description of the bug

debian/ubuntu-pro-client.postinst defines mark_reboot_cmds_as_needed as well as REBOOT_CMD_MARKER_FILE. These might be tech debt from the package rename from commit 4ad6b5e and could be removed, unless there’s a good reason for these to remain?

Expected behavior

Make use of the marker file more clear if needed or replace with a better way to handle fips package updates on reboot

Current behavior

The marker file is currently only created in the debian/ubuntu-advantage-tools.postinst. Should the marker file instead be moved to check for FIPS only handling? Currently in reboot_cmds.py the use of the marker file is used for fips package updates.

To Reproduce

n/a

System information:

n/a

Additional context

n/a

@dheyay dheyay added the bug something isn't working label Jul 12, 2024
@orndorffgrant
Copy link
Collaborator

The current reboot cmds does two things:

  1. if fips holds are detected on package upgrade - unhold them on next boot
    • question: do fips cloud images still hold fips packages?
    • if they do, it may make more sense as a timer job rather than an on-boot service
  2. on upgrade from trusty to xenial, run process_contract_deltas on next boot - related to livepatch
    • this might not be needed at all anymore (needs testing - ensure livepatch is in sensible state after a do-release-upgrade and reboot)

Also, we should use specific marker file names for specific situations rather the generic "reboot-cmds-needed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working triaged
Projects
None yet
Development

No branches or pull requests

2 participants