Skip to content

Commit

Permalink
Create a sentinel file to avoid running the fix every time (#1025)
Browse files Browse the repository at this point in the history
* Create a sentinel file to avoid running the fix every time

This file can also be created by the user to skip this fix if they so
desire. For example, they may have files owned by some other user and
they don't want to mess it up. In that case they can run a similar
script themselves, but with additional logic.

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Bump version

Signed-off-by: Dimitris Karakasilis <[email protected]>

---------

Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily authored Sep 4, 2024
1 parent 15f79a7 commit 9c5aa63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/static/kairos-overlay-files/collection.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages:
- name: "kairos-overlay-files"
category: "static"
version: "1.1.47"
version: "1.1.48"
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "Fix home directory permissions (kairos issue #2797)"
stages:
initramfs.after:
- name: "Fix permissions"
if: '[ ! -f "/usr/local/.kairos/skip-home-directory-ownership-fix" ]'
commands:
- |
# Iterate over users in /etc/passwd and chown their directories
Expand All @@ -13,3 +14,4 @@ stages:
echo "Directory $homedir does not exist for user $user"
fi
done
echo "https://github.com/kairos-io/kairos/issues/2843" > /usr/local/.kairos/skip-home-directory-ownership-fix

0 comments on commit 9c5aa63

Please sign in to comment.