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.
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.
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.