Add autopkgtest for luks1/luks2 automount on user login.
Hi, I was backporting you luks2 enablement for some Ubuntu releases. While doing so I thought it would be great to CI-check that it is valid and since I already had written steps for the Ubuntu SRU verification it was rather easy to convert that into a full autopkgtest.
Here are some examples of the test running - "fix" is the backport of the luks2 feature. Cosmic with fix: http://paste.ubuntu.com/p/nfwBTqBdP9/ Cosmic without: http://paste.ubuntu.com/p/2rzYZJ3RYJ/ Bionic with fix: http://paste.ubuntu.com/p/WwFDY99dNh/
I often enough had tests which are failing without knowing why, so I already added a sniff test which will add extra debug data to the output in case a fails likely. Such things often are not needed, but when failing I'm usually happy to have something I can start debugging :-)
I haven't run this in Debian systems yet, but the test is rather version agnostic, so it should work as-is for you as well.