Bug#1008169: bootstrapping fedora34 or centos7 gives a system with an empty package database

Luca Boccassi bluca at debian.org
Tue Mar 29 01:47:39 BST 2022


On Thu, 24 Mar 2022 13:09:32 +0100 Enrico Zini <enrico at debian.org>
wrote:
> On Thu, Mar 24, 2022 at 12:52:24AM +0000, Luca Boccassi wrote:
> 
> > Have you checked if the --clean-package-metadata= option is the
cause?
> > 
> >        CleanPackageMetadata=, --clean-package-metadata=
> >               Enable/disable removal of package manager databases,
caches, and logs at  the  end  of  installation.
> >               Can  be specified as true, false, or “auto” (the
default).  With “auto”, files will be removed if the
> >               respective package manager executable is not present
at the end of the installation.
> 
> I just tried, and that does not seem to be the cause:
> 
>   $ sudo /usr/bin/mkosi --distribution=fedora --release=34 --
format=directory --output=target --base-packages=true --
package=bash,rootfiles,dbus,dnf --clean-package-metadata=false
>   …
>   $ sudo systemd-nspawn --volatile -D target
>   Spawning container target on /home/enrico/lavori/arpa/moncic-
ci/target.
>   Press ^] three times within 1s to kill container.
>   -bash-5.1# rpm -qa
>   -bash-5.1# rpmdb --rebuilddb
>   -bash-5.1# rpm -qa
>   -bash-5.1# ls -la /var/lib/rpm
>   total 240
>   drwxr-xr-x 2 0 0    100 Mar 24 13:08 .
>   drwxr-xr-x 3 0 0     60 Mar 24 13:08 ..
>   -rw-r--r-- 1 0 0 212992 Mar 24 13:08 rpmdb.sqlite
>   -rw-r--r-- 1 0 0  32768 Mar 24 13:08 rpmdb.sqlite-shm
>   -rw-r--r-- 1 0 0      0 Mar 24 13:08 rpmdb.sqlite-wal
>   -bash-5.1# 

Root cause is:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004863

Workaround:

https://github.com/systemd/mkosi/pull/940

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220329/a186946d/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list