From bdb19873b1954de03939ac3df92d26053c162908 Mon Sep 17 00:00:00 2001 From: Maximilian Attems Date: Mon, 6 Apr 2009 09:50:07 +0000 Subject: [PATCH] powerpc fix installation of images "The problem is that (a) the kernel's postinst uses debconf, which uses stdin and stdout for communication and forbids other junk from appearing there, and (b) the kernel's postinst calls update-initramfs, which outputs status information to stdout which debconf thinks is a command in its protocol and thus confuses any future real debconf commands. Since the kernel's postinst is the thing with special requirements due to using debconf, it should be the thing responsible for redirecting file descriptors around as necessary." -cjwatson svn path=/dists/sid/linux-2.6/; revision=13347 --- debian/changelog | 7 +++++++ debian/templates/temp.image.plain/postinst | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 1927708cb..edd85e4f9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +linux-2.6 (2.6.29-3) UNRELEASED; urgency=low + + * [powerpc] Pipe mkimage postinst call to stderr for debconf. + Thanks Jordi Mallach for the patch. (closes: #518231) + + -- maximilian attems Mon, 06 Apr 2009 11:19:29 +0200 + linux-2.6 (2.6.29-2) unstable; urgency=low [ Martin Michlmayr ] diff --git a/debian/templates/temp.image.plain/postinst b/debian/templates/temp.image.plain/postinst index 266765385..e8d0c7455 100755 --- a/debian/templates/temp.image.plain/postinst +++ b/debian/templates/temp.image.plain/postinst @@ -983,7 +983,7 @@ if ($initrd) { my $initrd_path = $realimageloc . "initrd.img-$version"; my $ret = system("$ramdisk_cmd " . ($mkimage ? "-m '$mkimage' " : "") . - "-c -t -k $version"); + "-c -t -k $version >&2"); if ($ret) { warn "$ramdisk_cmd failed to create initrd image.\n"; } else {