Skip to content
Snippets Groups Projects

debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode

Merged Johannes Schauer Marin Rodrigues requested to merge josch/glibc:dpkg-root into sid
  1. Apr 09, 2024
    • Johannes Schauer Marin Rodrigues's avatar
      debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode · 2545f12e
      Johannes Schauer Marin Rodrigues authored and Aurelien Jarno's avatar Aurelien Jarno committed
      If glibc is installed in chrootless mode (i.e. $DPKG_ROOT is not empty),
      then checking the currently running kernel is not useful. At the point
      where the chroot is created on system X, the kernel running on X can be
      wildly different from the system Y that the chroot is supposed to run
      on.
      
      This was discovered when creating hurd chroots on linux. The tools
      creating the chroot have no information about the kernel which might run
      on the system that the chroot is built for.
      
      This commits adds an additional condition to the preinst block doing
      the kernel checks. It is only executed if $DPKG_ROOT is empty, in other
      words, only if this is a normal installation.
      
      Closes: #1063624
      2545f12e
Loading