nixpkgs/nixos
Vincent Haupert 941c79b620 nixos/github-runner: fix bugs related to InaccessiblePaths=
This commit fixes two bugs:

1) When starting a github-runner for the very first time, the
   unconfigure script did not copy the `tokenFile` to the state
   directory. This case just was not handled so far. As a result, the
   runner could not configure. The unit did, however, fail even before
   as the state token file is configured as inaccessible for the service
   through `InaccessiblePaths=`. As the given path did not exist in the
   described case, setting up the unit's namespacing failed.

2) Similarly, the `tokenFile` is also marked as not accessible to the
   service user. There are, however, cases where other namespacing
   options make the files inaccessible even before `InaccessiblePaths=`
   kicks in; thus, they appear as non existing and cause the namespacing
   to fail yet again. Prefixing the entry with a `-` causes Systemd to
   ignore the entry if it cannot find it. This is the behavior we want.

I also took fixing those bugs as a chance to refactor the unconfigure
script to make it easier to follow.
2022-10-08 01:32:55 +02:00
..
doc Merge pull request #194271 from andersk/teleport-10 2022-10-06 15:36:47 +02:00
lib Merge pull request #193498 from hercules-ci/nixos-doc-disambiguate-test-options 2022-10-04 21:35:49 +01:00
maintainers nixos/*: md-convert hidden plaintext options 2022-08-31 16:32:54 +02:00
modules nixos/github-runner: fix bugs related to InaccessiblePaths= 2022-10-08 01:32:55 +02:00
tests nixos/acme: Disable lego renew sleeping 2022-10-06 10:30:24 -04:00
COPYING
default.nix
README
release-combined.nix treewide: remove myself as maintainer from some pkgs 2022-08-03 14:17:51 +02:00
release-small.nix error: 'mysql' has been renamed to/replaced by 'mariadb' 2022-09-27 19:39:52 +02:00
release.nix nixos/testing: Embrace callTest 2022-09-24 17:38:09 +01:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.