Commit Graph

3 Commits

Author SHA1 Message Date
saypaul 8fa4201ef6 remodified approach with potential usecase attached 2024-12-02 20:55:52 +05:30
saypaul 4fe3e8e9a4 removed unsued params 2024-11-27 20:13:02 +05:30
saypaul 082e9ca10b tier1/fix:re-sync file owner post upgrade
Resync file owner if there are any discrepancies after the system is
upgraded from a different build system.

The script is to iterate all the files except /sysroot in parallel to
check for a change in the uid/gid post-upgrade. If there is
any it will trigger chown/chgrp to sync them according to the new
uid/gid. The script caches the unchanged uid/gid to skip files with
unchanged pairs and optimize the execution time. The scripts run via a
systemd unit which in turn requires ostree-finalized-stage.service
to ensure that the sync script runs only when a system is upgraded.
2024-11-27 19:51:24 +05:30