Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #371 from cgwalters/fix-root-ssh
Browse files Browse the repository at this point in the history
basic-fixes: Tweak `/usr/lib/tmpfiles.d/provision.conf`
  • Loading branch information
cgwalters authored Feb 29, 2024
2 parents abd9740 + 1688a6f commit 32feb42
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tier-0/basic-fixes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ postprocess:
if test '!' -f /usr/lib/systemd/system/local-fs.target.wants/tmp.mount; then
ln -sf ../tmp.mount /usr/lib/systemd/system/local-fs.target.wants
fi
# See https://github.com/containers/bootc/issues/358
# basically systemd-tmpfiles doesn't follow symlinks; ordinarily our
# tmpfiles.d unit for `/var/roothome` is fine, but this actually doesn't
# work if we want to use tmpfiles.d to write to `/root/.ssh` because
# tmpfiles gives up on that before getting to `/var/roothome`.
sed -ie 's, /root, /var/roothome,' /usr/lib/tmpfiles.d/provision.conf

0 comments on commit 32feb42

Please sign in to comment.