installer: The kernel version does not need to have a Debian-version

This commit is contained in:
Roland Clobus 2023-12-27 15:47:55 +01:00
parent 3dbcbab578
commit 2d0e537bdb
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
1 changed files with 6 additions and 1 deletions

View File

@ -301,13 +301,18 @@ fi
# un linux-image-5.17.0-1-amd64-unsigned
# ii linux-image-amd64
# un linux-image-generic
# Or without the extra version number:
# ii linux-image-6.6.8-amd64
# un linux-image-6.6.8-amd64-unsigned
# ii linux-image-amd64
# un linux-image-generic
# -> extract the 5.17.0-1 for LINUX_KERNEL_ABI
# If there is more than one entry, take the largest (i.e. most recent)
# MIRROR -> our snapshot URL, with disabled expiration
# TARGETS -> only these targets are required
# USE_UDEBS_FROM -> use the same distribution as the chroot
export LINUX_KERNEL_ABI=\$(dpkg-query --showformat "\\\${db:Status-Abbrev} \\\${Package}\n" --show linux-image-* | awk '\$1=="ii" { c = split(\$2, a, "-"); if (c>4) { print a[3] "-" a[4] } }' | sort | tail -1)
# ROOTCMD -> Workaround for #1058994. Fakeroot is not present in the chroot (and not required)
export LINUX_KERNEL_ABI=\$(dpkg-query --showformat "\\\${db:Status-Abbrev} \\\${Package}\n" --show linux-image-* | awk '\$1=="ii" { c = split(\$2, a, "-"); if (c>3) { if (a[4] ~ /^[0-9]+/) { print a[3] "-" a[4] } else { print a[3] } } }' | sort | tail -1)
MIRROR="[check-valid-until=no] ${LB_PARENT_MIRROR_CHROOT}" TARGETS="build_cdrom_gtk build_cdrom_isolinux" USE_UDEBS_FROM=${LB_PARENT_DISTRIBUTION_CHROOT} ROOTCMD=" " bash ./daily-build build-only
EOF
Chroot chroot "sh buildit.sh"