From patchwork Fri Jun 14 09:46:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anisse Astier X-Patchwork-Id: 2721031 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C236B9F472 for ; Fri, 14 Jun 2013 09:47:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A438820239 for ; Fri, 14 Jun 2013 09:47:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94DA72023B for ; Fri, 14 Jun 2013 09:47:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751838Ab3FNJrT (ORCPT ); Fri, 14 Jun 2013 05:47:19 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:47682 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751702Ab3FNJrS (ORCPT ); Fri, 14 Jun 2013 05:47:18 -0400 Received: by mail-wi0-f173.google.com with SMTP id hq4so112833wib.6 for ; Fri, 14 Jun 2013 02:47:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=2nhx/SX618wzv+CaokqPYEtYZ+On0w0+xdr/WfFkF80=; b=Gz10eryqg5b6SApVM726wajJTTL1IEgwN0QG/fkJ/zODwzOpcvTFjgByND+n+HBuLn tktQxu3/KEPqp/XTaXyPV62Rz31UfSrDidyjxvudhNA0zghBoSyNHTrUn+vJjkSz3Yos ar9/uqqVDpodAHXlvwMj9tqJ/IdWgJY3GSAPQuctR7DINFR2ywSYY8S5IUDUfU1hilkQ C3r3u27AArQvNCd8UgeaUP/mML4H4ugZqtNM7WNCBrna1+uF20mbEqHeGnO53/rgf9kp 6FSuB0fYBBae5J4exUTsi1gbYJ2xyMBWvYvArkf6WozKqup3L9p5QYsF+x/Vw5iStrHu TIEA== X-Received: by 10.180.212.74 with SMTP id ni10mr857895wic.41.1371203237534; Fri, 14 Jun 2013 02:47:17 -0700 (PDT) Received: from serenity.substantiel.local (mar92-17-78-228-214-160.fbx.proxad.net. [78.228.214.160]) by mx.google.com with ESMTPSA id b19sm1906568wik.10.2013.06.14.02.47.15 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Jun 2013 02:47:16 -0700 (PDT) From: Anisse Astier To: linux-kbuild@vger.kernel.org Cc: debian-kernel@lists.debian.org, kernel-team@lists.ubuntu.com, Ben Hutchings , Michal Marek , maximilian attems , Anisse Astier Subject: [PATCH v5 4/4] deb-pkg: add a hook argument to match debian hooks parameters Date: Fri, 14 Jun 2013 11:46:57 +0200 Message-Id: <1371203217-19572-5-git-send-email-anisse@astier.eu> X-Mailer: git-send-email 1.8.3.rc1 In-Reply-To: <1371203217-19572-1-git-send-email-anisse@astier.eu> References: <1371203217-19572-1-git-send-email-anisse@astier.eu> X-Gm-Message-State: ALoCoQlIvas6jzs6dx5J7wi6ai9KDb3arRF6QmoMKABSn0yZga6WRc+fN40sbot6lZjlE5Co1OdW Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We now provide the installed image path to the kernel hooks. This should allow the package to better integrate with debian hooks, and should not be too disruptive of hooks supporting only one parameter. Signed-off-by: Anisse Astier Reviewed-by: Ben Hutchings Acked-by: maximilian attems --- scripts/package/builddeb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 0dbada8..06cd0c7 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -184,7 +184,7 @@ set -e # Pass maintainer script parameters to hook scripts export DEB_MAINT_PARAMS="\$*" -test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d +test -d $debhookdir/$script.d && run-parts --arg="$version" --arg="/$installed_image_path" $debhookdir/$script.d exit 0 EOF chmod 755 "$tmpdir/DEBIAN/$script"