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

Bug#741642: upgrade from wheezy to jessie on a PowerMac G4 Silver



On Sun, 26 Apr 2015 16:35:29 +0200 Holger Levsen <holger@layer-acht.org>
wrote:

[...]

> 
> I've upgraded my old PowerMac from wheezy to jessie, which failed 
> like shown below.


[...]

> (/boot/initrd.img-3.16.0-4-powerpc) -- doing nothing at 
> /var/lib/dpkg/info/linux-image-3.16.0-4-powerpc.postinst line 263. 
> /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating
> /boot/initrd.img-3.16.0-4-powerpc 
> run-parts:
> /etc/kernel/postinst.d/mkvmlinuz exited with return code 20


The run-parts --report option in linux-image-{version}.postinst is
causing run-parts to output a file name to stdout, thus interfere with
an ongoing communication happening between mkvmlinuz and debconf which
is facilitated through stdin/stdout.

The attached mkvmlinuz patch secures a smooth upgrade from wheezy to
jessie by getting run-parts to output to stderr, not to stdout.


diff -Nru ./debian/kernel-image/postinst ../mkvmlinuz-38/debian/kernel-image/postinst
--- ./debian/kernel-image/postinst	2012-06-28 21:01:13.000000000 -0400
+++ ../mkvmlinuz-38/debian/kernel-image/postinst	2015-07-09 00:00:02.617843623 -0400
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+echo >&2
+
 set -e
 
 . /usr/share/debconf/confmodule
diff -Nru ./debian/kernel-image/postrm ../mkvmlinuz-38/debian/kernel-image/postrm
--- ./debian/kernel-image/postrm	2012-06-28 21:01:13.000000000 -0400
+++ ../mkvmlinuz-38/debian/kernel-image/postrm	2015-07-09 00:00:18.697817011 -0400
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+echo >&2
+
 set -e
 
 . /usr/share/debconf/confmodule

Reply to: