Skip to content

Detect earlier in the dev process if we're breaking automatic upgrades

At least twice we had to disable automatic upgrade paths because they would create a broken Tails system:

The first time this happened we added a manual test (eca3d1001236570cc6a26fd2a961710a0e151ca2) to ensure we would detect that during our QA. But as 3.6 shows, this was not enough to avoid releasing something broken so let’s ensure we detect such matters as early as possible, before we’ve invested too much time into QA: this will increase the chances we have time to fix the problem and release something that can be upgraded to automatically.

My plan has three parts:

  1. Implement something that checks the UID and GID of the debian-tor user at ISO build time and aborts the build if any of them has changed. This is what this ticket is about. I’ll do the same for the Upgrader’s users as I suspect they might be affected by the same problem.
  2. Find out what’s going on with Exim: it’s been involved in this problem twice and I think we could do something cheap in order to decrease the chances such problems happen. That’s #15418 (closed) and the follow-up is #15690 (closed).
  3. Implement a better solution in Tails 4.0, needed, depending on the timing of #8415 vs. #15281. See #15407 (closed) for details.

Feature Branch: bugfix/15419-detect-uid-and-gid-changes

Related issues

Original created by @intrigeri on 15419 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information