~mvo/snapd/+git/snapd-mvo:non-home

Last commit made on 2019-05-08
Get this branch:
git clone -b non-home https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
non-home
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

c91e34a... by Michael Vogt

snap-confine: tweak non-home error message (thanks to Graham)

634a17c... by Michael Vogt

snap-confine: when detecting non-home dirs check for /home/ and add test

c44fd1e... by Michael Vogt

snap-confine: improve error when running on a not /home homedir

We currently don't support running on a non /home homedirs. The
error in this case is very cryptic:
```
cannot create user data directory: /data1/home/username/snap/hello/20: Read-only file system
```

This PR detects the error in snap-confine and provides a clearer
error message to the user with a link to the relevant forum topic.

Ideally we would have a step-by-step guide in the forum docs how
to fix things there.

178211e... by Paweł Stołowski

overlord/snapstate: tweak autorefresh logic if network is not available

* Handle auto-refresh error caused by network not being ready, e.g. on system startup. In such cases auto-refresh should not be considered as done and postponed till next scheduled time, but retried soon. Fixes LP:#1824226

* Handle UnretriedNetworkError in searchStore helper.

* Use override.conf to modify ExecLine of snapd.

* Do not hardcode /usr/lib/snapd/snapd path in the spread test when mainpulating service file. Disable ubuntu-14.04 for this test and enable core18

* Moved error inspection logic to two helpers (thanks mvo!) to have the code structured and more future-proof.

* Use type switch to simplify isNetworkDown check.

* Renamed UnretriedNetworkError to PersistentNetworkError. Reduced refreshRetryDelay to 20 minutes.

d8d531c... by Michael Vogt

Merge pull request #6812 from mvo5/snapd-snap-fix3

snapcraft: also include ld.so.conf from libc in the snapcraft.yml

27c1f95... by Michael Vogt

snapcraft: also include ld.so.conf from libc in the snapcraft.yml

The cmdutil.CommandFromSystemSnap is using this to find what
library paths need setting.

484f3c0... by Michael Vogt

Merge pull request #6809 from mvo5/snapd-snap-fix2

snapcraft.yaml: fix links ld-linux-x86-64.so.2/ld64.so.2

a4e9843... by Michael Vogt

snapcraft.yaml: fix links ld-linux-x86-64.so.2/ld64.so.2

The symlinks in the libc6 package for the 64 bit loaders are
absolute and point to the real system. We need symlinks relative
to the snapd rootfs. This PR fixes the links inside the snap
to be relative.

6245f4d... by Samuele Pedroni

overlord: pass a DeviceContext to the checkSnap implementations

This in tests passed nil for now instead of deviceCtx, lots of places need one crafted from the model they might be setting in state ATM.

This is derived from #6801, but tries to change less in one go, OTOH it contains follow-ups to #6747 review.

b7f7452... by "John R. Lenton" <email address hidden>

Merge pull request #6699 from chipaca/user-root-only

daemon: add RootOnly flag to commands