Re: F36 Change: Relocate RPM database to /usr (System-Wide Change proposal)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Do, 30.12.21 07:05, Fedora Development ML (devel@xxxxxxxxxxxxxxxxxxxxxxx) wrote:

> As I demonstrated later in my email the contents of /var/lib/rpm
> do change at other times though.

Note that there are other things in /usr that are similar to the RPM
db in the "mostly-read-only-but-not-quite" sense, i.e. files that are
generated locally during updates, but are static outside of updates.

The kernel modules databases for example, i.e. /lib/modules/`uname
-r`/*.dep. Or fontconfig for mime db stuff iirc. ldconfig creates
so symlinks. And there's more.

I think having that is even fine. Key must be though that the stuff
that is generated locally and stored in /usr is:

a) never updated outside of the update operations
b) operates on input that is exclusively from the vendor, too (and not
   dependent on local admin's config choices)

As long as these rules apply the /usr/ tree remains sharable between
multiple systems, and hence it should be fine if some files stored
there are not written by RPM itself but by tools invoked by it that
operate on data also installed by it.

I think one of those days we should make the first rule explicit btw,
and by default overmount /usr/ with a read-only bind mount of itself,
that RPM then remounts writable immediately before doing an update and
remounts back afterwards. (or alternatively, rpm toggles the r/o bit
on the btrfs subvolume if /usr/ is one).

Key point I am trying to make here: having stuff in /usr that is not
directly RPM payload is not a new thing, it's a common thing we
already have been doing since a long time, and it's OK. I welcome if
RPM would put its database in /usr/ as well.

Lennart

--
Lennart Poettering, Berlin
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux