Commit 6a0c165
committed
monster: Fix runner work-dir bind mount not taking effect
The initial bind mount over /run/github-runner did not actually keep
builds off tmpfs in CI; two issues surfaced:
- The mount was wantedBy the runner services, but those are ephemeral
(Restart=always) and a systemd restart does not re-pull WantedBy deps.
After the first job the mount was left unmounted and builds dropped
back onto the 4G tmpfs, failing with ENOSPC. Bind it to
multi-user.target so it stays mounted for the host's lifetime.
- The source dir was 0750, so the per-runner DynamicUser could not
traverse the shared parent into its own RuntimeDirectory leaf, failing
with EACCES on the build dir. Use 0755 to match the mode systemd gave
the tmpfs parent before.1 parent daa072c commit 6a0c165
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments