Commit fc1892e8 authored by Ben Hutchings's avatar Ben Hutchings

Filter out linux-image-*-dbg packages from kernel selection (Closes: #762907)

parent 9124c4e5
base-installer (1.152) UNRELEASED; urgency=medium
* Add 586 flavour to i386 kernel selection
* Filter out linux-image-*-dbg packages from kernel selection
(Closes: #762907)
-- Ben Hutchings <ben@decadent.org.uk> Fri, 31 Oct 2014 18:23:11 +0000
......
......@@ -3,9 +3,18 @@ arch_get_kernel_flavour () {
}
arch_check_usable_kernel () {
if echo "$1" | grep -Eq -- "-amd64(-.*)?$"; then return 0; fi
return 1
case "$1" in
*-dbg)
return 1
;;
*-amd64 | *-amd64-*)
# Allow any other hyphenated suffix
return 0
;;
*)
return 1
;;
esac
}
arch_get_kernel () {
......
......@@ -39,6 +39,9 @@ arch_check_usable_kernel () {
set -- $2
while [ $# -ge 1 ]; do
case "$NAME" in
*-dbg)
return 1
;;
*-"$1" | *-"$1"-*)
# Allow any other hyphenated suffix
return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment