Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   Force update-initramfs to generate an initrd when called (http://www.linux-archive.org/ubuntu-kernel-team/698597-force-update-initramfs-generate-initrd-when-called.html)

Tim Gardner 08-28-2012 07:10 PM

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--


All times are GMT. The time now is 06:56 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.