From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Sat, 16 Nov 2024 11:56:05 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ot1-f62.google.com (mail-ot1-f62.google.com [209.85.210.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4AGAu3Ci013486 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 16 Nov 2024 11:56:04 +0100 Received: by mail-ot1-f62.google.com with SMTP id 46e09a7af769-71a491ce5f4sf2354995a34.0 for ; Sat, 16 Nov 2024 02:56:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1731754558; cv=pass; d=google.com; s=arc-20240605; b=MHEH6oY1ky3f+eeGTtEhsCVAe02qJwaQzNGrvgZlY160/u+XnYkLlEaKVaOjzgv8kx 7hgNHfcDeDFP+yHRMxK8t7hJ6N/if/QPlMz05RSyQsPlQVvloCoqli1l9eZxm44qhmK7 Aez7whfM8g/MWz3/DIn5IWaGDNEOE0P7U9b9WOyb1TQ9e8DfjfQL5y0mgPlw/cWAM8DK Oozvdp/yNXIfojg9YsaTckvOgcxaa5/uwMOE3PTqOw3YSEQHGho+eBf+J3dwBtq99xs/ gvNGaFSUOlNz0A9pKMEjxM+cl3BjEUZPKsBefjarh3bXesjdY0XQMHIKP2DvTahq28o+ jUCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b1fZ+HZGnGHWDD800wGNVGqqSgWwacmbBAx/BtYzwVQ=; fh=zJAH5gVY0q/Rb8MbgGM8gCR1MQwNXIcRpOe2Pyq6BKQ=; b=JIDzv7WlK4pHKDomABRMccJk0NyLEiLryQbWhxYBW7jOzUbYglh5xPdQpy52y/e6Fc uxiDUGnuHU/U9VzgCgRFywr2ub0B2P2llp2+Yxo6hNhmTwonkLFKDV2oZjE/dMpZeHjG Hv57COdZd7YRKSMhuxFyZMMzFc3ltpVKeAQXFjM92faYhTBNEQnuPkAnHXneIChJl1tB qtoKwYO0K13pMenoR00YdBosUITMzB9HXyVG5KHNK0wq8g4QcRKWJELW0hfu7tn6bWVF rrZZjJhpZz74jIJ0eyyFMGafp74MxLa+vxiyG0cUtdpYcKpMuUDQoQNm5Xotl2D83WMf mtwA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=aPfLmOgi; spf=pass (google.com: domain of fm-294854-202411161055541b2c2751a2ad5379c0-m0dy_c@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-294854-202411161055541b2c2751a2ad5379c0-m0Dy_c@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1731754558; x=1732359358; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=b1fZ+HZGnGHWDD800wGNVGqqSgWwacmbBAx/BtYzwVQ=; b=HbVD8wI2jLqy8kwbj37OPxZRZdQMPFFlX5x3zDx6lN9F+jlxLmbl1XteiXOy8hTvQV pVtxuqFa01+Sdif54d7CukpLmhfI+ioTU4lVtlMsTDlgAEADSDqak6ze+zRNSxu0U1sa dAd/bmjdXZv82565f6WBEtZ+fhMZtEl2qZlvsgBrY4QgGHH2jBWvn34ikjns5IfIiaga QSr6fFSbb+kw9HUTcyotmYFWmYzQAa+RHAUIIl6mVHSQIfrfT4YXBxMY94hNYVatd24N XsmKoebaziWZdohuNWNQr1WSEGSCOhbH+Yxlf1v4RyLI1MttYdc0l7BtbQtD5XyuaCuC Z5Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731754558; x=1732359358; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=b1fZ+HZGnGHWDD800wGNVGqqSgWwacmbBAx/BtYzwVQ=; b=RqgTeS/hhVkkQmdxrWgLq1Qi5rexddxCy8wOk7kgdwvzLovUp5JjtL2Wm5G2Pt1KVx ZF0DcFRsoknEh8wwssOK2tJyixGhTvQ/ZLEAcl3ofAg4ADpCgE+RDCJaf2EBWMzPmvDW mTz7XUNN7MlSHtVLj9u9y2k2boU1aA7Khe+MfrtSISpOBhNOmMI0l0xaSrOvGFDXqZPz moQ34s27/ni+b+Ieuvx+ab0rIg42VhujHVEvgfjDaXSeq3/8uVbC18AudBtrPChxawNs ntjHQJD+6kVrTGyinnZWQ0EnQPTpjh9HqkswlxbxlKM/nirkN3DSluzYq2CjRcWm+Dy2 KvAQ== X-Forwarded-Encrypted: i=2; AJvYcCVrc67fLFeSDTHYOVIGsqIiX8foB1kFwLZ/tKWNC2JePBRNx+uYcVWtLKMWzeHwHtWr7pOh@ilbers.de X-Gm-Message-State: AOJu0YzgkCq224PosaKegcqPU16cTTD/AY4vrsQtSELrqaipZw9hxzL9 o8cYVDvvx+kfUvVj8CMiDiouEtx8QVkwHM1TtwqrGbxIxqjV2h52 X-Google-Smtp-Source: AGHT+IG8Gv+Kbu0XyGM2Kj6pYY5RRUD/GL11+PPum5pZzpjSWs3QUDfrZAnKZp1qL5e80aBOfFw6Ww== X-Received: by 2002:a05:6830:6006:b0:718:99fa:347 with SMTP id 46e09a7af769-71a77945314mr5975807a34.14.1731754557753; Sat, 16 Nov 2024 02:55:57 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6820:4cc1:b0:5e7:b0e9:85d1 with SMTP id 006d021491bc7-5ee9cdd1ef4ls2207413eaf.2.-pod-prod-08-us; Sat, 16 Nov 2024 02:55:57 -0800 (PST) X-Received: by 2002:a05:6820:1e10:b0:5ba:ec8b:44b5 with SMTP id 006d021491bc7-5eeab419c20mr5340068eaf.3.1731754556885; Sat, 16 Nov 2024 02:55:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731754556; cv=none; d=google.com; s=arc-20240605; b=jWKw/pPqQk/L0JwT8Udc86gLC5+3r669Iq1CqyqyF3ni2fZEkwp6Jlf36Na+fJgwd0 lvgGh/21AC8SLoBWKJEIqMUtG/DaSMwrRSE0u1DqgmA4e7VU4A+Gm9itYnd0u4LLqE2d Ac1SpBE2GWKUa9soECTvvzTvticLghCKP+V+qvxMcx2g4nFpyyiuf8Xxb9jZHuJc7LuD g2kiSeCknaXuanJ9vqBPjqeSDhshVfqH1PYprUsfb8f8x7lTHjZUFu0u5JnXYY2IsQER ORIVIpGh76UZXXcIoE4SxJRyIQzLq9NXG/a7fP9+3Rp+zJDM3KC6uGDVcjLE+QcDjUL/ oMbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=3NmuJ+CYB4NjLAWvkKRcIcbaRDM33YIGEP1V/+MRMTE=; fh=TWGwN84gUgHIe5O4CbyH9KISyeWwGbvUX7cnJPxVD70=; b=dJSdGisq9YNqBEx2X7jgCXfYZ4doFx53le7VbTBqjPx7pSoUYbEENoon6sew2woRPN SQMPlbZSa+Rig48gROT2ZQgfSzkn2kp9y/t0575OindfexCZekEwoBE/Qz1/ZYRku3eP GR9Pzr1kKIdkZ3cZEiYNK6sNQZ7bW0bl8DfvTHdGu7WtCUTPdT9S/c5N/jeuURoHS5Iz gYIwipcOdQgz+ca9LHFhmnkCgo9Ou6A1tfwcfiewqQANvVPj2q6lgrRvzbdMga5ChDvC M9kbw6wU3ZqyxgM4HhEg7W5yGP94CiunstkuJ2a4SFg+td3iSYYfzklez93KZ48lyTJ8 6YZA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=aPfLmOgi; spf=pass (google.com: domain of fm-294854-202411161055541b2c2751a2ad5379c0-m0dy_c@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-294854-202411161055541b2c2751a2ad5379c0-m0Dy_c@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id 006d021491bc7-5eeabd10970si164677eaf.1.2024.11.16.02.55.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Nov 2024 02:55:56 -0800 (PST) Received-SPF: pass (google.com: domain of fm-294854-202411161055541b2c2751a2ad5379c0-m0dy_c@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 202411161055541b2c2751a2ad5379c0 for ; Sat, 16 Nov 2024 11:55:54 +0100 From: "'Jan Kiszka' via isar-users" To: isar-users Cc: Quirin Gylstorff Subject: [PATCH v3 4/7] initramfs-isar-example-hook: Convert recipe over to new hook.inc Date: Sat, 16 Nov 2024 11:55:49 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-Original-Sender: jan.kiszka@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=aPfLmOgi; spf=pass (google.com: domain of fm-294854-202411161055541b2c2751a2ad5379c0-m0dy_c@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-294854-202411161055541b2c2751a2ad5379c0-m0Dy_c@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Jan Kiszka Reply-To: Jan Kiszka Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: fnT52rM0hfjv From: Jan Kiszka Allows to drop the own hook recipe and makes the local-top boot script effectively a one-liner. Signed-off-by: Jan Kiszka --- .../images/isar-initramfs.bb | 2 +- .../initramfs-example/files/example.hook | 21 ----------------- .../initramfs-example/files/example.script | 23 ------------------- .../initramfs-example/files/local-top | 3 +++ ....bb => initramfs-isar-example-hook_0.1.bb} | 21 ++++++----------- 5 files changed, 11 insertions(+), 59 deletions(-) delete mode 100644 meta-isar/recipes-initramfs/initramfs-example/files/example.hook delete mode 100644 meta-isar/recipes-initramfs/initramfs-example/files/example.script create mode 100644 meta-isar/recipes-initramfs/initramfs-example/files/local-top rename meta-isar/recipes-initramfs/initramfs-example/{initramfs-example.bb => initramfs-isar-example-hook_0.1.bb} (63%) diff --git a/meta-isar/recipes-initramfs/images/isar-initramfs.bb b/meta-isar/recipes-initramfs/images/isar-initramfs.bb index 4df9e0b8..71dbaa43 100644 --- a/meta-isar/recipes-initramfs/images/isar-initramfs.bb +++ b/meta-isar/recipes-initramfs/images/isar-initramfs.bb @@ -14,6 +14,6 @@ INITRAMFS_PREINSTALL += " \ # Recipes that should be installed into the initramfs build rootfs. INITRAMFS_INSTALL += " \ - initramfs-example \ + initramfs-isar-example-hook \ initramfs-fsck-hook-ext4 \ " diff --git a/meta-isar/recipes-initramfs/initramfs-example/files/example.hook b/meta-isar/recipes-initramfs/initramfs-example/files/example.hook deleted file mode 100644 index ba848c92..00000000 --- a/meta-isar/recipes-initramfs/initramfs-example/files/example.hook +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# Example hook script. -# -# See "HOOK SCRIPTS" in initramfs-tools(7) for details. - -set -e - -PREREQ="" -prereqs() -{ - echo "$PREREQ" -} -case $1 in -prereqs) - prereqs - exit 0 - ;; -esac - -. /usr/share/initramfs-tools/hook-functions -# Begin real processing below this line diff --git a/meta-isar/recipes-initramfs/initramfs-example/files/example.script b/meta-isar/recipes-initramfs/initramfs-example/files/example.script deleted file mode 100644 index c55e9ea7..00000000 --- a/meta-isar/recipes-initramfs/initramfs-example/files/example.script +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# Example boot script. -# -# See "BOOT SCRIPTS" in initramfs-tools(7) for details. - -set -e - -PREREQ="" -prereqs() -{ - echo "$PREREQ" -} -case $1 in -prereqs) - prereqs - exit 0 - ;; -esac - -. /scripts/functions -# Begin real processing below this line - -log_success_msg "Hello from ISAR!" diff --git a/meta-isar/recipes-initramfs/initramfs-example/files/local-top b/meta-isar/recipes-initramfs/initramfs-example/files/local-top new file mode 100644 index 00000000..66e382b4 --- /dev/null +++ b/meta-isar/recipes-initramfs/initramfs-example/files/local-top @@ -0,0 +1,3 @@ +# Script header is provided by initramfs-hook/hook.inc + +log_success_msg "Hello from ISAR!" diff --git a/meta-isar/recipes-initramfs/initramfs-example/initramfs-example.bb b/meta-isar/recipes-initramfs/initramfs-example/initramfs-isar-example-hook_0.1.bb similarity index 63% rename from meta-isar/recipes-initramfs/initramfs-example/initramfs-example.bb rename to meta-isar/recipes-initramfs/initramfs-example/initramfs-isar-example-hook_0.1.bb index c336dda9..8c600639 100644 --- a/meta-isar/recipes-initramfs/initramfs-example/initramfs-example.bb +++ b/meta-isar/recipes-initramfs/initramfs-example/initramfs-isar-example-hook_0.1.bb @@ -4,37 +4,30 @@ # # This software is a part of ISAR. +require recipes-initramfs/initramfs-hook/hook.inc + DESCRIPTION = "Sample initramfs module for ISAR" MAINTAINER = "Your name here " -DEBIAN_DEPENDS = "initramfs-tools" # If the conf-hook enables BUSYBOX=y, busybox is needed: DEBIAN_DEPENDS .= ", busybox" -SRC_URI = " \ +SRC_URI += " \ file://example.conf-hook \ - file://example.hook \ - file://example.script \ + file://local-top \ " -inherit dpkg-raw - do_install[cleandirs] += " \ ${D}/usr/share/initramfs-tools/conf-hooks.d \ - ${D}/usr/share/initramfs-tools/hooks \ - ${D}/usr/share/initramfs-tools/scripts/local-top \ " -do_install() { +do_install:append() { # See "CONFIGURATION HOOK SCRIPTS" in initramfs-tools(7) for details. install "${WORKDIR}/example.conf-hook" \ "${D}/usr/share/initramfs-tools/conf-hooks.d/isar-example" - # See "HOOK SCRIPTS" in initramfs-tools(7) for details. - install "${WORKDIR}/example.hook" \ - "${D}/usr/share/initramfs-tools/hooks/isar-example" + # See "HOOK SCRIPTS" in initramfs-tools(7) for details on + # hook-header[.tmpl] + hook. # Note that there are other places where a boot script might be deployed to, # apart from local-top. See "BOOT SCRIPTS" in initramfs-tools(7) for details. - install "${WORKDIR}/example.script" \ - "${D}/usr/share/initramfs-tools/scripts/local-top/example.script" } -- 2.43.0 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/a0fb4ba14224894e66f64a340be380caf9ca0bb8.1731754552.git.jan.kiszka%40siemens.com.