On 12/29/21 07:26, Vitaly Zaitsev via devel wrote:
On 29/12/2021 16:01, Ben Cotton wrote:
> Currently, the RPM databases is located in `/var`. Let's move it to
> `/usr`. The move is already under way in rpm-ostree-based
> installations, and in (open)SUSE.
It will break FHS compatibility. /usr must contain read-only data.
If /usr really is read-only, then it probably doesn't matter where the
rpmdb is, since packages can't be installed (generally).
Moreover, for systems where /usr is read-only and/or shared (especially
stateless systems), having the rpmdb on /usr seems like the most
rational place for it, if one expects to be able to use rpm to query the
package list. Otherwise, there is an implicit coupling of /usr and
/var/lib/rpmdb that requires two mounts rather than one.