[csw-maintainers] Migrating config files from /opt/csw/etc to /etc/opt/csw during package update

Maciej (Matchek) Blizinski maciej at opencsw.org
Tue Sep 1 17:22:23 CEST 2009


On Tue, Sep 1, 2009 at 3:57 PM, Dagobert Michelsen<dam at opencsw.org> wrote:
> Good comparison. In case (4) this means the file is first moved
> from /opt/csw/etc/foo.conf to /etc/opt/csw/foo.conf and then symlinked?
> So it is more like (2)+(4).

I was thinking about doing only the symlinking, so if you opened
/etc/opt/csw/foo.conf, you'd get data from /opt/csw/etc/foo.conf.

The actual command would be:

ln -s ../../../opt/csw/etc/foo.conf ${PKG_INSTALL_ROOT}/etc/opt/csw/foo.conf

> Sounds for me as the best thing to do. The symlink shouldn't be
> in the package but generated during postinstall with errors ignored
> because if /etc/opt/csw is lofs'ed to /opt/csw/etc the symlink would
> point to itself and generation would fail as would the complete package
> install.

I see. Good point.

Maciej



More information about the maintainers mailing list