~mvo/snapd/+git/snapd-mvo:disk-from-partition

Last commit made on 2019-12-04
Get this branch:
git clone -b disk-from-partition https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
disk-from-partition
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

7129a63... by Michael Vogt

gadget: rename DiskFromPartition -> ParentDiskFromPartition and add tests

d92dce8... by Michael Vogt

gadget: extract and export new DiskFromPartition() helper

For the UC20 code that creates partitions on firstboot we will
need something that can determine the disk from a partition. We
already have such code in the gadget that is not exported, so
this PR extracts and exports it.

501aba3... by Sergio Cazzolato

Merge pull request #7829 from sergiocazzolato/tests-fix-nested-tests

tests: fix the channels checks done on nested tests

65b7914... by Maciej Borzecki

Merge remote-tracking branch 'upstream/master' into tests-fix-nested-tests

9482dee... by Maciej Borzecki

Merge pull request #7815 from sergiocazzolato/tests-speedup-install-local-snaps

tests: reduce the complexity of the test-snapd-sh snap

To install test-snapd-sh in taking about 40 seconds in a board like pi3.
Whithe this change the istallation takes about 12 seconds.

Also the install local takes as defult path the local test directory, so it is possible to install snaps and is it not needed to pack and install with --dangerous manually.

8bb0554... by Maciej Borzecki

Merge pull request #7824 from bboozzoo/bboozzoo/verify-snap-pack-access

snap/squashfs, osutil: verify files/dirs can be accessed by mksquashfs when building a snap

The mksquashfs tool does not error out when locations are not accessible by the
user who invoked it. Workaround that by adding an early pass that verifies the
contents of snap directory are accessible to the current user, and produce an
error otherwise.

For instance, attempting to pack the core18 snap as a user produces this error
message:

```
error: cannot pack "/snap/core18/current": cannot access the following locations in the snap source directory:
- etc/gshadow (owner 0:42 mode 0640)
- etc/shadow (owner 0:42 mode 0640)
- etc/ssl/private (owner 0:0 mode 0700)
- etc/sudoers (owner 0:0 mode 0440)
- etc/sudoers.d/README (owner 0:0 mode 0440)
- root (owner 0:0 mode 0700)
- var/cache/ldconfig (owner 0:0 mode 0700)
- var/lib/private (owner 0:0 mode 0700)
- var/lib/snapd/void (owner 0:0 mode 0111)
```

Fixes: https://bugs.launchpad.net/snapd/+bug/1854045

687fda2... by Michael Vogt

devicestate: fix merge artifact

fa16b1e... by Michael Vogt

Merge pull request #7820 from mvo5/boot-modeenv-kernel

boot: add boot.Modeenv.Kernel support

6f46305... by Michael Vogt

Merge pull request #7822 from cmatsuoka/core20-installmode-part1

devicestate: ensure system installation

c9cbb5c... by Maciej Borzecki

snap/squashfs: tweak wording in comments

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