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/abc.sh but I want it to always be up to date with what is in /usr/etc/profile.d/abc.sh. 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/abc.sh on the image that points to /usr/share/ublue-os/etc/profile.d/abc.sh, which is where the script is stored.

1 Like