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

Luca Boccassi bluca at debian.org
Thu Mar 24 00:52:24 GMT 2022


On Wed, 23 Mar 2022 15:19:45 +0100 Enrico Zini <enrico at debian.org>
wrote:
> Package: mkosi
> Version: 12-1~bpo11+1
> Severity: important
> 
> Hello,
> 
> I tried with fedora34 and centos7, but it might be the same for all
> rpm-based distributions.
> 
> To reproduce:
> 
>    sudo /usr/bin/mkosi --distribution=fedora --release=34 --
format=directory --output=target --base-packages=true --
package=bash,rootfiles,dbus,dnf
> 
> or:
> 
>    sudo /usr/bin/mkosi --distribution=centos --release=7 --
format=directory --output=target --base-packages=true --
package=bash,rootfiles,dbus,yum
> 
> Then:
> 
>    $ 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# 
> 
> This might be related to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004863
> and if that is the case, that issue also contains a workaround.
> 
> 
> Thank you,
> 
> Enrico

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.

-- 
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/20220324/a1697da3/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list