Bug#306219: initrd-tools: Does not handle woody's architecture string well on sparc, breaking upgrades
Package: initrd-tools
Version: 0.1.78
Severity: important
Hi,
While testing the suggested procedure for upgrade from woody to sarge
on sparc32 [0], I've bumped into an initrd-tools problem, which prevents
transitional kernel from booting (hence the severity, discussed with and
approved by RM). It turns out that when gcc is not installed on woody,
'dpkg --print-architecture' returns 'sparc-none', differently from the
expected 'sparc'. As a result mkinitrd fails to include the esp SCSI
module into initrd. The following simple patch fixes it:
--- a/mkinitrd 2005-04-10 10:06:44.000000000 -0400
+++ b/mkinitrd 2005-04-24 23:27:38.514772448 -0400
@@ -586,7 +586,7 @@
Amiga) ARCH_ESP=mca_53c9x ;;
esac
;;
- sparc | sparc64) ARCH_ESP=esp ;;
+ sparc*) ARCH_ESP=esp ;;
esac
# XXX Workaround: 2.4 and 2.6 disagrees about the name of the new sym53c8xx module
[0] http://higgs.djpig.de/upgrade/upgrade-kernel/
Thanks and best regards,
Jurij Smakov jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
Reply to: