[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#690285: unblock: amd64-microcode/1.20120910-2



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package amd64-microcode

Unfortunately, both amd64-microcode and intel-microcode can trigger a very
nasty bug in initramfs-tools that renders the initramfs unusable, and
therefore may make the system unbootable.

It will only happen when initramfs-tools is incapable of creating ORDER
files (e.g. because of noexec $TMPDIR or noexec /tmp with $TMPDIR unset),
so it should be pretty rare.  But still, the consequences are dire...
kinda like some of the processor errata the packages fix, I suppose :-)

This has bitten an user of intel-microcode.  Please refer to bug #689301
and #688794.

This upload works around the bug in initramfs-tools, which is the safest
way to go about it (especially considering backports).

debdiff attached.  diffstat:
 changelog               |    9 +++++++++
 initramfs.init-premount |    2 +-
 rules                   |    7 +++++--
 3 files changed, 15 insertions(+), 3 deletions(-)

unblock amd64-microcode/1.20120910-2

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.31+ (SMP w/8 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
diff -Nru amd64-microcode-1.20120910/debian/changelog amd64-microcode-1.20120910/debian/changelog
--- amd64-microcode-1.20120910/debian/changelog	2012-09-14 16:50:50.000000000 -0300
+++ amd64-microcode-1.20120910/debian/changelog	2012-10-09 08:18:25.000000000 -0300
@@ -1,3 +1,12 @@
+amd64-microcode (1.20120910-2) unstable; urgency=medium
+
+  * initramfs: work around initramfs-tools bug #688794.
+    Use "_" in place of "+-." for the initramfs script name.  This works
+    around a PANIC during boot when the initramfs was created in a system
+    with noexec $TMPDIR.
+
+ -- Henrique de Moraes Holschuh <hmh@debian.org>  Tue, 09 Oct 2012 08:18:01 -0300
+
 amd64-microcode (1.20120910-1) unstable; urgency=medium
 
   * AMD microcode release 20120910
diff -Nru amd64-microcode-1.20120910/debian/initramfs.init-premount amd64-microcode-1.20120910/debian/initramfs.init-premount
--- amd64-microcode-1.20120910/debian/initramfs.init-premount	2012-09-14 12:27:31.000000000 -0300
+++ amd64-microcode-1.20120910/debian/initramfs.init-premount	2012-10-09 08:17:36.000000000 -0300
@@ -9,7 +9,7 @@
 
 # dependencies: firmware loader, microcode kernel support (built-in/module)
 
-PREREQ="udev"
+PREREQ=""
 
 prereqs()
 {
diff -Nru amd64-microcode-1.20120910/debian/rules amd64-microcode-1.20120910/debian/rules
--- amd64-microcode-1.20120910/debian/rules	2012-09-14 12:27:31.000000000 -0300
+++ amd64-microcode-1.20120910/debian/rules	2012-10-09 08:17:36.000000000 -0300
@@ -10,6 +10,9 @@
 # DebHelper control
 export DH_ALWAYS_EXCLUDE=CVS:.svn:.git
 
+# Work around Debian bug #688794
+INITRAMFS_NAME := $(subst -,_,$(subst +,_,$(subst .,_,$(PACKAGE))))
+
 build-indep:
 
 build-arch:
@@ -30,10 +33,10 @@
 
 	mkdir -p "$(PKGDIR)/usr/share/initramfs-tools/hooks"
 	install -m 755 "$(DEBDIR)/initramfs.hook" \
-		"$(PKGDIR)/usr/share/initramfs-tools/hooks/$(PACKAGE)"
+		"$(PKGDIR)/usr/share/initramfs-tools/hooks/$(INITRAMFS_NAME)"
 	mkdir -p "$(PKGDIR)/usr/share/initramfs-tools/scripts/init-premount"
 	install -m 755 "$(DEBDIR)/initramfs.init-premount" \
-		"$(PKGDIR)/usr/share/initramfs-tools/scripts/init-premount/$(PACKAGE)"
+		"$(PKGDIR)/usr/share/initramfs-tools/scripts/init-premount/$(INITRAMFS_NAME)"
 
 binary: install
 	dh_testdir

Reply to: