How do I create an /etc configuration file that is always up to date with the default from the image?

I am trying to create an /etc/profile.d/ but I want it to always be up to date with what is in /usr/etc/profile.d/ How could I do this? I know I could maybe use symlinks to do this but how would that work?

I am going to do this:

create a symlink file at /usr/etc/profile.d/ on the image that points to /usr/share/ublue-os/etc/profile.d/, which is where the script is stored.

1 Like