From patchwork Tue Aug 8 19:16:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 799417 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical-com.20150623.gappssmtp.com header.i=@canonical-com.20150623.gappssmtp.com header.b="JWRmpoJW"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3xRkqD4lqWz9s81; Wed, 9 Aug 2017 05:24:24 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1dfA72-00039j-OF; Tue, 08 Aug 2017 19:24:20 +0000 Received: from mail-vk0-f49.google.com ([209.85.213.49]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1df9zU-000186-Br for kernel-team@lists.ubuntu.com; Tue, 08 Aug 2017 19:16:32 +0000 Received: by mail-vk0-f49.google.com with SMTP id u133so17546318vke.3 for ; Tue, 08 Aug 2017 12:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=F04QMO3GgfudYxGnC9CP25jiNA8K2CGDyBkCBFE47uQ=; b=JWRmpoJWDdVJU9LnsgCM1CaIQNqltx1GaF+zMwnNWpsNfX65FxqaQ0WXs+LrGPRC2Z h/vITnyRSztXqMUragTDy7xy9yshiiko7pTRuc4iuL9ENTnv0fmnSUnBKCDnDb+WCNUJ kVQ+ABff+oEjg3jwkI641rBl6nf3LX1RIJXT/SLlI9+G4aXryxKnc9hojhvEschehtka AN2ADWBFALHQU30V2UQxcIAljzlQ5LYyBl85a4GUT5p308PTz1K8SjFKumH2f31ir9mg EwJcHTGeGiTRZ0re+ySOF5fpZo//gKRe5ZAR0PbXkJ8u8VWrGJJMVBdmt1ZH0bRzTvqN HZLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=F04QMO3GgfudYxGnC9CP25jiNA8K2CGDyBkCBFE47uQ=; b=ogVhZc27ZPdirMgAj8nq442tufFmYMw2kJcbRL0s83ZSqKp1bIE15Y2g+t47CoEcYK 94rmwKv8fPYI0HPKrIc4dUKmoqpZzVNILTguFfUY70PmHB47bMUfPRHjigngfCQ35w+e bwRMdhPtlGnj/ZCLqJmZe5FLxFcn8F69lNx0JCAs2NZwHrebrs91rC4q9qBgQFsUhhgu DRh+ivBdPEwFxIlk1d1ni+tAKuheoPkSM/cQNSyWC6M/CGxqIwUTA2n/C2f8N4Hnt90w XvKG7OLi87wVwYRE3zflTJTkVxJuEEY2SUiy2icHo3exnKyzcbj+dhjIOMMegBsGf/IH tYLw== X-Gm-Message-State: AHYfb5gYULr7P3b1u10JGiRFnYrCbKl6to7Q1syjP3jTQYGg9FGF5/ch RFWwmwpkiZ3D+ErSwik= X-Received: by 10.31.10.21 with SMTP id 21mr3308722vkk.36.1502219790917; Tue, 08 Aug 2017 12:16:30 -0700 (PDT) Received: from localhost.localdomain ([191.8.84.147]) by smtp.gmail.com with ESMTPSA id d185sm709257vkb.51.2017.08.08.12.16.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 12:16:30 -0700 (PDT) From: Marcelo Henrique Cerri To: kernel-team@lists.ubuntu.com Subject: [kvm][PATCH] UBUNTU: [Debian] Don't abort installation if update-initramfs is missing Date: Tue, 8 Aug 2017 16:16:08 -0300 Message-Id: <1502219771-14143-7-git-send-email-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502219771-14143-1-git-send-email-marcelo.cerri@canonical.com> References: <1502219771-14143-1-git-send-email-marcelo.cerri@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com BugLink: http://bugs.launchpad.net/bugs/1700972 Change the control scripts to ignore the initramfs generation when initramfs-tools is not available. Signed-off-by: Marcelo Henrique Cerri --- debian/control-scripts/postinst | 2 +- debian/control-scripts/postrm | 2 ++ debian/control-scripts/preinst | 2 ++ debian/control-scripts/prerm | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/control-scripts/postinst b/debian/control-scripts/postinst index 808575ce8a80..43de83fa5891 100644 --- a/debian/control-scripts/postinst +++ b/debian/control-scripts/postinst @@ -142,7 +142,7 @@ if (-r "$CONF_LOC" && -f "$CONF_LOC" ) { } } - +$initrd = '' if (! -x "$ramdisk"); # For some versions of kernel-package, we had this warning in the # postinst, but the rules did not really interpolate the value in. diff --git a/debian/control-scripts/postrm b/debian/control-scripts/postrm index 227e351fc59b..9879178e2147 100644 --- a/debian/control-scripts/postrm +++ b/debian/control-scripts/postrm @@ -156,6 +156,8 @@ if (-r "$CONF_LOC" && -f "$CONF_LOC" ) { } } +$initrd = '' if (! -x "$ramdisk"); + if ($link_in_boot) { $image_dest = "/$image_dir/"; $image_dest =~ s|^/*|/|o; diff --git a/debian/control-scripts/preinst b/debian/control-scripts/preinst index 972377609fce..4c70e36b9631 100644 --- a/debian/control-scripts/preinst +++ b/debian/control-scripts/preinst @@ -161,6 +161,8 @@ if (-r "$CONF_LOC" && -f "$CONF_LOC" ) { } } +$initrd = '' if (! -x "$ramdisk"); + $ENV{KERNEL_ARCH}=$kernel_arch if $kernel_arch; # About to upgrade this package from version $2 TO THIS VERSION. diff --git a/debian/control-scripts/prerm b/debian/control-scripts/prerm index 07e41461d3ab..755247f8e35e 100644 --- a/debian/control-scripts/prerm +++ b/debian/control-scripts/prerm @@ -163,6 +163,7 @@ if (-r "$CONF_LOC" && -f "$CONF_LOC" ) { } } +$initrd = '' if (! -x "$ramdisk"); $ENV{KERNEL_ARCH}=$kernel_arch if $kernel_arch;