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

Enrico Zini enrico at debian.org
Thu Mar 24 12:09:32 GMT 2022


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# 


Enrico

-- 
GPG key: 4096R/634F4BD1E7AD5568 2009-05-08 Enrico Zini <enrico at enricozini.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220324/f4664989/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list