For now, hard-code linux-image=* in backports support
Keep the normal kernel on media *as well as* a backports kernel. d-i will install the normal one first, then later upgrade it.
This commit is contained in:
parent
31ec2cb178
commit
bd0a1107c7
|
@ -46,9 +46,20 @@ open (LISTOUT, "> $listout") or die "ERROR: Can't write to $listout: $!\n";
|
||||||
while (defined($_=<LISTIN>)) {
|
while (defined($_=<LISTIN>)) {
|
||||||
chomp;
|
chomp;
|
||||||
if (exists $backports{$_}) {
|
if (exists $backports{$_}) {
|
||||||
delete $backports{$_};
|
# Horrible to hard-code stuff here, but for now I don't see a
|
||||||
print LISTOUT "$_/$codename-backports\n";
|
# better way. Keep the normal kernel on media *as well as* a
|
||||||
print " Replaced $_ with $_/$codename-backports in $listout\n";
|
# backports kernel. d-i will install the normal one first,
|
||||||
|
# then later upgrade it.
|
||||||
|
if (m/^linux-image-/) {
|
||||||
|
print LISTOUT "$_/$codename-backports\n";
|
||||||
|
print LISTOUT "$_\n";
|
||||||
|
print " Keeping both $_ and $_/$codename-backports in $listout\n";
|
||||||
|
delete $backports{$_};
|
||||||
|
} else {
|
||||||
|
print LISTOUT "$_/$codename-backports\n";
|
||||||
|
print " Replaced $_ with $_/$codename-backports in $listout\n";
|
||||||
|
delete $backports{$_};
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
print LISTOUT "$_\n";
|
print LISTOUT "$_\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue