Force update-initramfs to generate an initrd when called
BugLink: http://bugs.launchpad.net/bugs/1041607
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
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/<unknown>/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.
" unless $success;
if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m/<unknown>/og) {
--
1.7.9.5
--------------040209060606090908060704
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
--------------040209060606090908060704--
|