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

Enrico Zini enrico at debian.org
Wed Mar 23 14:19:45 GMT 2022


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

-- System Information:
Debian Release: 11.2
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-10-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_IE:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mkosi depends on:
ii  btrfs-progs        5.10.1-2
ii  debootstrap        1.0.123
ii  dosfstools         4.2-1
ii  e2fsprogs          1.46.2-2
ii  fdisk              2.36.1-8+deb11u1
ii  python3            3.9.2-3
ii  systemd-container  247.3-6
ii  util-linux         2.36.1-8+deb11u1
ii  xz-utils           5.2.5-2

Versions of packages mkosi recommends:
ii  cryptsetup-bin          2:2.3.5-1
ii  debian-archive-keyring  2021.1.1
ii  gnupg                   2.2.27-2
ii  ovmf                    2020.11-2+deb11u1
ii  python3-cryptography    3.3.2-1
ii  squashfs-tools          1:4.4-2+deb11u2
pn  ubuntu-archive-keyring  <none>

mkosi suggests no packages.

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list