~mvo/snapd/+git/snapd-mvo:fix-symlinks

Last commit made on 2019-08-19
Get this branch:
git clone -b fix-symlinks https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
fix-symlinks
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

1d7a051... by Michael Vogt

tests: exclude 14.04 when checking for snapd.session-agent socket (no user sessions in 14.04)

a7af67e... by Michael Vogt

tests: add test for snapd.session-agent.socket symlinks

Rename "debs-have-built-using" to a more generic "debs" test
and also test there that the symlink for snapd.session-agent.socket
in the package points to the right place. There was a bug in
the packaging that resulted in a bad symlink of the form:
```
$ dpkg -c snapd_2.40+git1432.803f873~ubuntu18.04.1_amd64.deb |grep snapd.session-agent.socket
-rw-r--r-- root/root 152 2019-08-15 16:16 ./usr/lib/systemd/user/snapd.session-agent.socket
lrwxrwxrwx root/root 0 2019-08-15 16:16 ./usr/lib/systemd/user/sockets.target.wants/snapd.session-agent.socket -> /snapd.session-agent.socket
```
This commit ensures this won't regress.

258d549... by Michael Vogt

packaging: fix symlink for snapd.session-agent.socket

The dh_link man-page says that relative syntax is not supported
when describing the source/target in snapd.links. This PR
converts it to absolute names and dh_link will convert it back
to a (short) relative symlink.

It also updates the debian packaging to include the link. It was
forgoten there it seems.

This should fix a failure the broken symlink we currently see
in the snapd snap that prevents the snapd snap from getting
updated.

9df99b6... by Michael Vogt

Merge pull request #7248 from zyga/fix/snap-remove-removes-ns

interfaces/mount: discard mount ns on backend Remove

fb4c5c7... by Michael Vogt

Merge pull request #7249 from bboozzoo/bboozzoo/build-on-rhel

packaging/fedora: build on RHEL8

928130a... by Samuele Pedroni

overlord/devicestate: support seeding a classic system with the snapd snap and no core

This cleans up and tests a bit more in the first boot tests in general as well.

caa57b9... by Zygmunt Krynicki

interfaces/mount: discard mount ns on backend Remove

When a snap is removed each security backend is asked to remove the
security profiles associated with the snap in question. For the mount
backend that would just remove the desired mount namespace profile.

While this part worked correctly there was more to be done. The system
may still have the preserved mount namespace as well as the actual
applied (current) mount profiles that exist therein.

In a case where a snap was installed but the installation failed because
of a hook issue, the system would be left in a state where an existing
mount namespace would be left behind.

Related-To: https://bugs.launchpad.net/snapd/+bug/1808821
Signed-off-by: Zygmunt Krynicki <email address hidden>

2d30453... by Maciej Borzecki

Merge remote-tracking branch 'upstream/master' into bboozzoo/build-on-rhel

d20a83a... by Michael Vogt

Merge pull request #7250 from mvo5/unbreak-master2

interfaces: fix test failure in gpio_control_test

a75d8c6... by Maciej Borzecki

packaging/fedora: make sure RHEL8 static Go binares are built as PIE

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