From patchwork Tue Aug 28 19:39:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Quantal: ti-omap4 fails kernel package update Date: Tue, 28 Aug 2012 09:39:25 -0000 From: Tim Gardner X-Patchwork-Id: 180537 Message-Id: <503D1E6D.2060606@canonical.com> To: kernel-team BugLink: http://bugs.launchpad.net/bugs/1041607 Given Oliver's comments in the bug (https://bugs.launchpad.net/ubuntu/quantal/+source/linux/+bug/1041607/comments/2) I kind of wonder how the kernel postinst ever works, especially if update-initramfs doesn't do anything until the hooks are run. Anyways, attached is a patch that forces update-initramfs to generate an initrd when called, rather then deferring until hook time. Is this the right solution ? rtg >From 37c9ebd9a7ae4f8d6a873b21da4968f38b3b5e65 Mon Sep 17 00:00:00 2001 From: Tim Gardner Date: Tue, 28 Aug 2012 13:10:24 -0600 Subject: [PATCH] UBUNTU: [Config] Force update-initramfs to generate an initrd when called BugLink: http://bugs.launchpad.net/bugs/1041607 Signed-off-by: Tim Gardner --- debian/control-scripts/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control-scripts/postinst b/debian/control-scripts/postinst index b6ed9f8..52140d2 100644 --- a/debian/control-scripts/postinst +++ b/debian/control-scripts/postinst @@ -834,7 +834,7 @@ if ($initrd) { if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m//og) { $upgrading = 0; } - my $ret = system("$ramdisk " . ($upgrading ? "-u" : "-c") . " -k " . $version . " >&2"); + my $ret = system("INITRAMFS_TOOLS_KERNEL_HOOK=yes $ramdisk " . ($upgrading ? "-u" : "-c") . " -k " . $version . " >&2"); $success = 1 unless $ret; die "Failed to create initrd image.\n" unless $success; if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m//og) { -- 1.7.9.5