Package: debirf Version: 0.38 Severity: important Tags: patch Dear Maintainer,
Since usr merge, Debirf no longer works properly. The issue lays in the install-kernel script : debirf_exec dpkg --extract /var/cache/apt/archives/"$KPKG" / This line installs the kernel by extracting it inside the chroot environment. For some reason, a classic dpkg install can't be done here. The package linux-image-4.19.0-1-amd64 embeds directory trees and unfortunately dpkg --extract overwrite the existing /lib symlink in the chroot with its directory tree. In that state the system is then completely unusable. >From reading the source code of dpkg it seems that this way of extracting the inner tar archive embeded in the package is not configurable. So as a workaround, we can extract the files ourselves and specify the option --keep-directory-symlink in the tar command : -debirf_exec dpkg -i /var/cache/apt/archives/"$KPKG" +debirf_exec apt-get install -y binutils xz-utils +debirf_exec ar x /var/cache/apt/archives/"$KPKG" data.tar.xz +debirf_exec tar -x --keep-directory-symlink -f data.tar.xz +debirf_exec rm -f data.tar.xz -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages debirf depends on: ii apt 1.8.0~beta1 ii cpio 2.12+dfsg-6 ii debootstrap 1.0.114 ii fakechroot 2.19-3.2 ii fakeroot 1.23-1 ii klibc-utils 2.0.4-15 ii xz-utils 5.2.2-1.3 Versions of packages debirf recommends: ii grub-common 2.02+dfsg1-10 ii lsb-release 10.2018112800 ii xorriso 1.5.0-1 Versions of packages debirf suggests: pn syslinux-common <none> -- no debconf information