From patchwork Tue May 7 15:46:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anisse Astier X-Patchwork-Id: 2536001 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id E351CDF215 for ; Tue, 7 May 2013 15:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757736Ab3EGPrs (ORCPT ); Tue, 7 May 2013 11:47:48 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:48955 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757503Ab3EGPrs (ORCPT ); Tue, 7 May 2013 11:47:48 -0400 Received: by mail-wi0-f180.google.com with SMTP id h11so806432wiv.13 for ; Tue, 07 May 2013 08:47:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=FwOV1HMg0LgtGRl4ICU+ACMJnReB0x0XLJeKx4tZCF4=; b=i/pVm82LsBGQ6TQF9Pio16VMnBSYyjFyeLBUw08gUgB+MgIqF8k/Z/RKE+O8Apetic t5UO4w7fHByZvZLYQfE9g37bRPG9rENAoKDMuBMsL4XuyRAu9iU2zHz+XKkHR91Q8c2o xrR6Z2t3BWAZEIzykmTUSWwmlQCGSZSyC+9vb2G1QmxXEhTkafQnGtfJhFbNitbJj5cx PuN6Xs63mDt6gTdhIA+U2wiPpurayGj9Z5h+2hTuUeresvYEUqU2fp91VqQWgxiReIN0 rHQDyEJ+Q4xdNNzO3oNShl3/i/u82o0t0vUd4RmekZmgKYMvFIdpPsrYe6l+kCD8DPSh 2yQg== X-Received: by 10.194.248.200 with SMTP id yo8mr4443082wjc.36.1367941666800; Tue, 07 May 2013 08:47:46 -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 q13sm3842742wie.8.2013.05.07.08.47.45 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 08:47:45 -0700 (PDT) From: Anisse Astier To: linux-kbuild@vger.kernel.org Cc: Michal Marek , maximilian attems , Anisse Astier , Ben Hutchings , debian-kernel@lists.debian.org, kernel-team@lists.ubuntu.com Subject: [PATCH v4 4/4] deb-pkg: add a hook argument to match debian hooks parameters Date: Tue, 7 May 2013 17:46:51 +0200 Message-Id: <1367941611-12223-5-git-send-email-anisse@astier.eu> X-Mailer: git-send-email 1.8.3.rc1 In-Reply-To: <1367941611-12223-1-git-send-email-anisse@astier.eu> References: <1367941611-12223-1-git-send-email-anisse@astier.eu> X-Gm-Message-State: ALoCoQloI57z8UorygyG/cCD9XPk0GbuXznsIDY+RagJyPe0yoa1TjBBvjcBFaZ2jFJ0bsSI4ECh Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 --- scripts/package/builddeb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 73bb551..fa084c6 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -182,7 +182,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"