~mvo/snapd/+git/snapd-mvo:remodel-allow-kernel-removal

Last commit made on 2019-05-07
Get this branch:
git clone -b remodel-allow-kernel-removal https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
remodel-allow-kernel-removal
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

49f303f... by Michael Vogt

snapstate: allow removal of non-model kernels

This PR allows removal of kernels that are not required by the
model. This can happen after a remodel that replace the kernel.

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

421e69a... by Michael Vogt

Merge pull request #6819 from mvo5/test-build-go

osutil: fix TestReadBuildGo test in sbuild

e1949ff... by Maciej Borzecki

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

Add more checks for legay `type: mbr` in structure definition. Catch cases, when
legacy MBR type is used, with an incompatible role.

Signed-off-by: Maciej Borzecki <email address hidden>

33cfcf4... by Michael Vogt

Merge pull request #6813 from jhenstridge/xdg-data-dirs-via-environment.d

data: update XDG_DATA_DIRS via the systemd environment.d mechanism too

f28c281... by Samuele Pedroni

many: do without device state/assertions accessors based on state only outside of devicestate/tests

Because under remodeling we have two models, the current one, and the new model to be, lots of operations to be correct need to get the device state, model assertions in a contextual manner, via the new snapstate.DeviceCtx for example. The previous accessors solely starting from state are dangerous, do without most of them and reduce the surface of DeviceManager as well.

Device and SetDevice are still available for tests through devicestatetest (This is achieved introducing a devicestate/internal package).

DeviceManager is not directly a storecontext.Backend anymore, but can provide one via its StroreContextBackend method.

This leaves a few XXXs that will need to be addressed soon.

A follow will also use a registrationContext indirection instead of directly the DeviceManager in much of the registration handling code, to allow its reuse in a remodeling change.

2ec553d... by Michael Vogt

Merge pull request #6830 from bboozzoo/bboozzoo/fix-dbus-unit-tests-snap-moutndir

interfaces/dbus: fix unit tests when default snap mount dir is not /snap

274e9f4... by Maciej Borzecki

Merge pull request #6765 from jdstrand/verify-setpriority-arg-filter

tests: add security-seccomp to verify seccomp with arg filtering

18af6fc... by Maciej Borzecki

interfaces/dbus: fix unit tests when default snap mount dir is not /snap

Unit tests assumed that default snap mount directory is /snap, but did not mock
the distro. Stick to whatever is correct for the host, and use proper paths
instead.

Signed-off-by: Maciej Borzecki <email address hidden>

709de6e... by Michael Vogt

Merge pull request #6824 from mvo5/release-2.39

release: 2.39