Installer: ignore the configured kernel version

When building the Debian installer from git, ignore any configured
kernel version, and use the kernel version that is present in the chroot
environment.

This fixes a build error on Trixie/testing, which occurred after a new
kernel became available when the freeze was lifted.
This commit is contained in:
Roland Clobus 2023-07-08 08:01:19 +02:00
parent 29e26d11f8
commit 4086f078d9
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
1 changed files with 3 additions and 1 deletions

View File

@ -283,7 +283,9 @@ then
echo "P: using debian-installer from git version \$(git log -n 1 --pretty=format:%H_%aI)"
fi
# Install the build-dependencies
# Install the build-dependencies, but remove explicit kernel versions,
# because the current kernel version will be used
sed -i '/linux-image-/d' debian/control
mk-build-deps
find -maxdepth 1 -name *.deb | xargs apt-get --yes install