[Pkg-fedora-ds-maintainers] Bug#775550: Bug#775550: 389-ds-base: Update fails when /var mounted on different filesystem than /etc

Timo Aaltonen tjaalton at debian.org
Wed Mar 30 05:44:29 UTC 2016

17.01.2015, 10:23, Michal Kaspar kirjoitti:
> Package: 389-ds-base
> Version:
> Severity: normal
> Dear Maintainer,
> When updating package 389-ds-base, update fails and leaves directory server in uconfigured state if /var is mounted on separate filesystem. There is no apparent error, but changing /var/lib/dpkg/info/389-ds-base.postinst
>         setup-ds -l $OUT -u -s General.UpdateMode=offline > $OUT 2>&1
> to
>         setup-ds -l $OUT -u -s General.UpdateMode=offline
> reveals the problem in this postinst script. The error is:
> Could not rename config file '/etc/dirsrv/slapd-KASPAR-IN/slapd-collations.conf' to '/var/lib/dirsrv/slapd-KASPAR-IN/bak.bak/slapd-collations.conf'.  Error: Invalid cross-device link
> Creating symlink /etc/dirsrv/bak -> /var/lib/dirsrv/salpd-instance/{bak,bak.bak} resolves the problem but it's not exactly elegant solution.

I dropped the patch to use move instead of rename, because turns out it
works even worse and for everyone.. and also because it was also
unnecessary since this upstream commit that I failed to notice until now:

commit c0d233b60311e2bf65dc13eee6f12abe221be932
Author: Ludwig Krispenz <lkrispen at r.c>
Date:   Tue Jan 20 10:34:41 2015 +0100

    Ticket 47991 - upgrade script fails if /etc and /var are on
different file systems


More information about the Pkg-fedora-ds-maintainers mailing list