~snappy-dev/snapd/+git/snapd-pawel:fix-sanitize-helpers-for-snapd

Last commit made on 2019-05-09
Get this branch:
git clone -b fix-sanitize-helpers-for-snapd https://git.launchpad.net/~snappy-dev/snapd/+git/snapd-pawel

Branch merges

Branch information

Name:
fix-sanitize-helpers-for-snapd
Repository:
lp:~snappy-dev/snapd/+git/snapd-pawel

Recent commits

a7b2273... by Paweł Stołowski

Added a minimal test.

a12dd62... by Paweł Stołowski

Special-case "snapd" in sanitizeSlotReservedForOSOrGadget and sanitizeSlotReservedForOS helpers.

a98b183... by Samuele Pedroni

many: make which store to use contextual

This is needed because during a remodel we need to use a different store with a store context with the new model information etc.

This reworks snapstate.Store instead of relying solely on DeviceContext, because:

* less code churn
* conceptually we can talk to the store to some limited extent even without a model or being registered

This introduces also Install/UpdateUnderDeviceContext to use in the upcoming remodel planning task when there is a brand store/brand/model change. Given the very specific use case it didn't make sense to expand the signatures of Install/Update directly, also *UnderDeviceContext later will need to take a change id to do the right thing vs conflict checks.

The "Under" names are not definitive, might use "With" instead.

49fd1a4... by Maciej Borzecki

Merge pull request #6826 from sergiocazzolato/tests-fix-centos-errors

tests: enable tests on centos 7 again

b360b4f... by Michael Vogt

Merge pull request #6790 from MirServer/login-session

interfaces: add login-session-control interface

50579ec... by Michael Vogt

Merge pull request #6837 from stolowski/snapshots-test-debug

tests: extra debug for snapshot-basic test

c573edd... by Paweł Stołowski

Extra debug for snapshot-basic test.

9622cac... by Samuele Pedroni

make which store to use contextual

this reworks snapstate.Store instead of relying just on DeviceContext,
because:

* less code churn
* conceptually we can talk to the store to some limited extent even
  without a model or being registered

5bf2e57... by Samuele Pedroni

overlord,overlord/devicestate: do without GadgetInfo/KernelInfo in devicestate

This is mostly achieved by using the fact that we know the name of the gadget snap from the model and by introducing instead a snapstate.HasSnapOfType.

As a drive-by this also simplifies a bit the triggering logic for registration.

130a274... by Maciej Borzecki

Merge pull request #6832 from bboozzoo/bboozzoo/gadget-update-more-structure-validation

gadget: more validation checks for legacy MBR structure type & role