From patchwork Wed Jul 3 14:02:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anisse Astier X-Patchwork-Id: 2817141 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6631CBF4A1 for ; Wed, 3 Jul 2013 14:02:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 351472019C for ; Wed, 3 Jul 2013 14:02:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E8D6A20168 for ; Wed, 3 Jul 2013 14:02:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754935Ab3GCOCW (ORCPT ); Wed, 3 Jul 2013 10:02:22 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:52217 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932425Ab3GCOCU (ORCPT ); Wed, 3 Jul 2013 10:02:20 -0400 Received: by mail-wi0-f176.google.com with SMTP id ey16so5268742wid.15 for ; Wed, 03 Jul 2013 07:02:19 -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=XMuNfFe/QeYl4PJLl6fIHJQxMjpTDiFeKJ8nIQroGlc=; b=WQUcAVM8PgSxrxEGxPihkb/5ksUVlLwej4lh4+zdRWBicEfNzNz5+dEGJm3bVIaVT1 9MomNLBtJ6V4zj9MNW17o5PApSrv/tz923D51Rb6qi85y0hTxJGijwJFUFC+DbGS1hta sAIoR+7yRgWKJZpHqfcsT0cslw06p/+DHTWbYJgJsrtcj7OL0ezoo+NnWe/Qb2zrXxTu 1i3etbNNbhmucBzg+UF9IHo4rVSTM1tbq8wy5RGqdxdbjcniG2CB088/ZiPy/HID4Yam XzMjg/V5pbdFL99r6vjtn+nHf2rWEl1Jn790jLjpwJxtGhe3ctEDgbJGJ9TRzC2L+/kV CVug== X-Received: by 10.180.85.8 with SMTP id d8mr701763wiz.13.1372860139514; Wed, 03 Jul 2013 07:02:19 -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 nb12sm28995189wic.7.2013.07.03.07.02.17 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Jul 2013 07:02:18 -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 v6 4/4] deb-pkg: add a hook argument to match debian hooks parameters Date: Wed, 3 Jul 2013 16:02:06 +0200 Message-Id: <1372860126-8909-5-git-send-email-anisse@astier.eu> X-Mailer: git-send-email 1.8.3.rc1 In-Reply-To: <1372860126-8909-1-git-send-email-anisse@astier.eu> References: <1372860126-8909-1-git-send-email-anisse@astier.eu> X-Gm-Message-State: ALoCoQmHpJ2EX0yaVzjWq0cCYOxarxG2po/ie0L/J69o3DienJQG6P+2jLxPG9uDW15MIBK7gDgZ Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.9 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 aebc66e..de89923 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"