snapstate: avoid reboots if nothing in the boot setup has changed. #2117

Merged
merged 1 commit into from Oct 11, 2016

Conversation

Projects
None yet
3 participants
Collaborator

mvo5 commented Oct 10, 2016

Use helper boot.KernelOrOsRebootRequired() in doLinkSnap instead of a inferious manual version of it.

On firstboot the system will be in a state where snap_try_{kernel,os}/snap_{kernel,os} are exactly the same. In this case no forced reboot is needed.

lgtm, does this need a test?

@niemeyer niemeyer merged commit 09138ca into snapcore:master Oct 11, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment