From patchwork Tue Aug 8 19:16:05 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: 799412 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="imc/58hf"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3xRkfc3Wjwz9s81; Wed, 9 Aug 2017 05:16:56 +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 1df9zp-0001OC-P7; Tue, 08 Aug 2017 19:16:53 +0000 Received: from mail-ua0-f174.google.com ([209.85.217.174]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1df9zO-00014c-7Y for kernel-team@lists.ubuntu.com; Tue, 08 Aug 2017 19:16:26 +0000 Received: by mail-ua0-f174.google.com with SMTP id d29so19516568uai.2 for ; Tue, 08 Aug 2017 12:16:26 -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=R/E4c+8tdoTAQhsQfdZY3ql7vDFOrO0R0bn63TauxSw=; b=imc/58hfdY2jGuiV/ZGrzaGyabr5wu7X/dEMoVE7fRj0N94HIjEseskTsXerAC/Sq6 pUnEH9yCC+Geok4+TPA5u8/UxeqTYf1HPuxXY4EjOhYr1qjJrnadgEeD1ftH7VHurdGC SaxCYiIK9Dstj258J1e+6P7xjKP08OQ4XKXoO+3SrXTrsq8vqbjax2NqHLWoXYyYRIiG /CSJUbCtD14BvJVN9esRbuGHHVt31pxRO+SBV8p9Z2E/9Ga0P0H4w+Xd88xLneOXnrkN 4TvdNlyuEbegpLvrGtN1GZ5kvTcU9TGzoeyjuO9QNJFsxn96LqW+exXYPupcEibtj5Dd hILQ== 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=R/E4c+8tdoTAQhsQfdZY3ql7vDFOrO0R0bn63TauxSw=; b=lgjzetyBuy46SNjJsM3Yg7xLN5J97SsJSlKhQhOWpzgsHGGFUOBjyaRqZShHYtMRzX U9N8I2ClM2teZM0yd03/EaBTXBPq2BCQRXO5m65Lu84lwCbNFMH0I7OBdhFKmyl1CP3d weTt+7Fo+JKCObW6SdEKpn2b/DfUB6y3pnzYo+xr0lFv4Ra7d6p1eNWMzde0KobIA6uW TXJAkGBwP00NNNbvyInAMPHVIgYazP+KUQX5VULahPqIJetuS+g57u1xkjT9oG7NhZ23 EXQ1jd1h15c/w5X3nHXjWlCV9AXOZHR+RTIfhNkKyEbCYRhdy4tlTlTjx8aX7IwRaIy9 uGZA== X-Gm-Message-State: AHYfb5jdLhNkKrThdWf54waCimblpbyL5tCI3LGK5FJLQ3+BRi5us8iY cmA1gaiLyiqEVHERJ7M= X-Received: by 10.159.62.212 with SMTP id n20mr4167951uaj.142.1502219784804; Tue, 08 Aug 2017 12:16:24 -0700 (PDT) Received: from localhost.localdomain ([191.8.84.147]) by smtp.gmail.com with ESMTPSA id d185sm709257vkb.51.2017.08.08.12.16.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 12:16:24 -0700 (PDT) From: Marcelo Henrique Cerri To: kernel-team@lists.ubuntu.com Subject: [zesty][PATCH] UBUNTU: [Debian] Don't depend on initramfs-tools Date: Tue, 8 Aug 2017 16:16:05 -0300 Message-Id: <1502219771-14143-4-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 Allow images to be created without the need of an initrd and also allow users to run without an initrd if they want to. Signed-off-by: Marcelo Henrique Cerri --- debian.master/control.d/flavour-control.stub | 4 ++-- debian/control-scripts/postinst | 2 +- debian/control-scripts/postrm | 2 ++ debian/control-scripts/preinst | 2 ++ debian/control-scripts/prerm | 1 + 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debian.master/control.d/flavour-control.stub b/debian.master/control.d/flavour-control.stub index 6318ad236538..b85b6cd001a2 100644 --- a/debian.master/control.d/flavour-control.stub +++ b/debian.master/control.d/flavour-control.stub @@ -27,8 +27,8 @@ Architecture: ARCH Section: kernel Priority: optional Provides: linux-image, fuse-module, =PROVIDES=${linux:rprovides} -Depends: ${misc:Depends}, ${shlibs:Depends}, initramfs-tools | linux-initramfs-tool, kmod -Recommends: BOOTLOADER +Depends: ${misc:Depends}, ${shlibs:Depends}, kmod +Recommends: BOOTLOADER, initramfs-tools | linux-initramfs-tool Breaks: flash-kernel (<< 3.0~rc.4ubuntu64) [arm64] Suggests: fdutils, SRCPKGNAME-doc-PKGVER | SRCPKGNAME-source-PKGVER, SRCPKGNAME-tools, linux-headers-PKGVER-ABINUM-FLAVOUR Description: Linux kernel image for version PKGVER on DESC 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;