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 12:13:11 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qt1-f184.google.com (mail-qt1-f184.google.com [209.85.160.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4AGBDAOO014066 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 16 Nov 2024 12:13:10 +0100 Received: by mail-qt1-f184.google.com with SMTP id d75a77b69052e-46360a97a99sf11953511cf.1 for ; Sat, 16 Nov 2024 03:13:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1731755584; cv=pass; d=google.com; s=arc-20240605; b=I5UwsfdHAaCxog5LJJYfnZ0WuaoYhwW/e4I23gCctfCyW3ZwE5UMHx1/1D0/f5G6GT jqSTLfdsaA9ncjcX54e8nP4IXGOjySZr7HXh3avreT0ASMyMFrVSXaqbeQudU5qPPI8f Ww6KNOmvwdfXeEo1/gzlHfsSSikx36lwb872Zs46K9Jn+9rBKEYGY7IvtbzQ0RHMA4Nu WaSvTx7ypkog03Wb5bdLK867Yg9sEAOQ+O93OVwcLQKr/JjmH1djZFTI6UB5jPI8m2Uh poJW8Tw4Ct4vU1Xhvipti2AeHs6feF0dO/fx8JrrAyPinRDQ4J3oziaIt8UinlcMz27J Lphg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=CmuTRqTDnArdBIGUwa7sr15aHlTuujB4lET/WCzrPhY=; fh=wZwY6EiOOFMGkM7mWuVocwE0ow7Tj2m1fl5fgqGqIXU=; b=YKfKiRbkXwhOH9rzrURDWukf09TFzxTvLHpTSTVKgIfQ6EmRNyUY+FfalXJJy1sUIp Pzny2nmk9TEBC7RyGzTStZUDlpZMlMXzbPSxt16wvacYZL5d2U83ndNs0R6/SezHKHZI MQmQclmcM5nY6W6WpDd/KpV3B5N6MxryvDegxWsFnkEJVUjeBNhP3mKd4gcfQ8MbyDCQ rYBOxpU2X5zHS0lHcIcDJuA2EFiamjwAmw9MqCLl36TJ2O8mwhVDzf3yMLxM4MxhYp4h kZpVllWYKvNzrMCSfVgUNc2PF3oHRhqwVj/4jrhtieGhBhJCNUVJpPUtFWV41RvZneWi mv7g==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=RMQZDx1c; spf=pass (google.com: domain of fm-294854-20241116111302e34ef432150aeff0dd-q76f8s@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-294854-20241116111302e34ef432150aeff0dd-q76F8S@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=1731755584; x=1732360384; 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:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=CmuTRqTDnArdBIGUwa7sr15aHlTuujB4lET/WCzrPhY=; b=ZxrFLokhhuBFjHmGA9MUfGXpjLSdhHXCNU17d1aCYGI6utmgYKVHKL4+QoAyJMvc1J YsgOQRjEyoYxd41a1hcJrhDbbCuNSagpHyuALYk7JWTm48HaRtdyEpCT8Um/0KcA6c7l aiPwTTCKtSNYmvJeeZwwRSg1fCx/DhOqNH+NTElrMJS3glrlV8Qkb8HHsXq6zdkDzWA6 6ufLXViTBxjoc9aPUzJflcuaio18nQPJyvRa1hcxsIb6faSJMZH5z1gctRfchHO/4XEt eNGufeYBZKhhAsfvk25Wawn270tTFxRyh+ieVI9v8+1r0MghZnviz/D8dVL+kBFs/VIs fM1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731755584; x=1732360384; 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:message-id:date:subject:cc:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CmuTRqTDnArdBIGUwa7sr15aHlTuujB4lET/WCzrPhY=; b=YOrFc5oZzToRMh+lJAXatompLjLde3ihqK46Kwv4+IMsxD4DmMpUkJxBPYWNSMYR7w F3QNJy/ycNEh62tAVrp37J6dgpUvfEn4RvAByWfihEBQMNN62ABW/mhEum/XRibttGgO jYgsU2QBUydnvSk9NE4h5PAivuuNv+K4OPz1X7iIFOuoWEgBrVvcjP49rDMkrV60QAZt QQHHSvrSmI0wydqUI4OMf2c6jfB+YMxbDvq4SwwbjRXC9Si+3zqcSjp158rXKa74wQX8 yxS7dAeAFncm27vAwMbDdvt+5u33IQ5rhJuhZrk0VcvEM3fSBQc/e8zOluSCEuoyhAjm J4gw== X-Forwarded-Encrypted: i=2; AJvYcCW5P73Cn5oATVzbd9PmU4fFbmx0M5v8fSU5FqGMrLu/9+oVPX7Ly6z2fQPkro8oyEhygn3M@ilbers.de X-Gm-Message-State: AOJu0YwTjszSc/TTRD+b4E0MemokkMaHb3f/5DcE6U6G7WQDekkfhw9o w7oVWaLmLu6Fgm6VZwqRjUR/lLFWWjWMgxDOK5MsdskMJ2maBzVF X-Google-Smtp-Source: AGHT+IHsTjgqyJWk8EgUSZxUq/IqdatnMLk0897x8SuzIepLCE20AfYDj94UxAB+qLCWycVY7HQ8YA== X-Received: by 2002:a05:622a:4111:b0:462:d75a:e2f0 with SMTP id d75a77b69052e-46363de866cmr97313691cf.7.1731755584367; Sat, 16 Nov 2024 03:13:04 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac8:5a11:0:b0:460:89b7:cac0 with SMTP id d75a77b69052e-46370581d60ls7275771cf.1.-pod-prod-06-us; Sat, 16 Nov 2024 03:13:03 -0800 (PST) X-Received: by 2002:ae9:c004:0:b0:7b1:5504:2762 with SMTP id af79cd13be357-7b36235e2aemr564761385a.38.1731755583563; Sat, 16 Nov 2024 03:13:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731755583; cv=none; d=google.com; s=arc-20240605; b=aF+si8mVr3rwc+GCMuM6Urroea40E8dSrJUr3mwzBMnYaR7+7awdLsdGOdUA1Q7Kz0 NT+7f2Jhpgzwv/Ig+AFHYEAto5LbcHhe67t1UrLrvXPaB7ctZsIUUmRAzBZKiqpBDKFF E8BVUB+58ijDyvBmXix4L605kWCQ39Q7GKGsbgNyP2dGGHjBhh4PxJlETIFjZAQGIUzo 57YpsH5Mewvq2LhtDp6/0ndpXJV7mFTVYsh29A2WalQtVwVNXD5GUNjdDMv3JOx2nzMr 3N+s9KX9aM1li5rD+XS1Elc/bru2ix84Rd4nXAmJyPtJV9ARj4X1ns5sBFf8W3jFRHYZ ui6g== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=c9lCfNGSTZfT2hgHEmOcs5ki8IGwHwOo5WJbBTOS8JQ=; fh=TWGwN84gUgHIe5O4CbyH9KISyeWwGbvUX7cnJPxVD70=; b=Tx/U36oZdAI6MIMhO6oMVe0+IDTl3WYqUC1VFde05scvmPT8YnFuUprnBJfgF+Ubvw +JAKUZesLaPIv+D4jDTEEw7WCbzEd4zkT1bzqbrK/zJAUwr3IgY0TVk7EYZWkyYWTgRB n4FVnK/FHl2RbWxNBOAJJJuJyw6m5SPBmVoGD9x9xhpyTdDSYw+lBvYKjzUtbyzkPQNO 7byCQdK1Q8ZawBXhEqBP1u3mrX4uZZHQJmS36K1BIWcI8PiuYXIyzEh5S4tRGiXBJ7Co SIzv9C3+3uqZh2tCy9/IEM0XAlzmZhL5YJbhNkqxZnMMoQGsvjiPz6nUveQJJr6DKcPL tH8g==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=RMQZDx1c; spf=pass (google.com: domain of fm-294854-20241116111302e34ef432150aeff0dd-q76f8s@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-294854-20241116111302e34ef432150aeff0dd-q76F8S@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-228.siemens.flowmailer.net (mta-65-228.siemens.flowmailer.net. [185.136.65.228]) by gmr-mx.google.com with ESMTPS id af79cd13be357-7b35caa2c92si23043885a.6.2024.11.16.03.13.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Nov 2024 03:13:03 -0800 (PST) Received-SPF: pass (google.com: domain of fm-294854-20241116111302e34ef432150aeff0dd-q76f8s@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) client-ip=185.136.65.228; Received: by mta-65-228.siemens.flowmailer.net with ESMTPSA id 20241116111302e34ef432150aeff0dd for ; Sat, 16 Nov 2024 12:13:02 +0100 From: "'Jan Kiszka' via isar-users" To: isar-users Cc: Quirin Gylstorff Subject: [PATCH v4 0/7] Simplify writing initramfs hooks Date: Sat, 16 Nov 2024 12:12:54 +0100 Message-ID: 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=RMQZDx1c; spf=pass (google.com: domain of fm-294854-20241116111302e34ef432150aeff0dd-q76f8s@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-294854-20241116111302e34ef432150aeff0dd-q76F8S@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: c0QU3lvavlpN Changes in v4: - add forgotten header to boot scripts (this part was apparently only build-tested so far...) Changes in v3: - fix DEBIAN_DEPENDS for initramfs-tee-supplicant-hook - use .= for extending DEBIAN_DEPENDS Changes in v2: - add commit message to patch 1 Specifically while looking at the initramfs recipes we have in isar-cip-core, it felt like it's time to simplify their creation and offload the developers from all the related boilerplate bits. But the benefit can also be observed with the initramfs recipes in isar itself. Jan Jan Kiszka (7): initramfs-hook: Add infrastructure to ease writing hooks doc: Describe initramfs customizations isar-initramfs: Add initramfs-fsck-hook-ext4 initramfs-isar-example-hook: Convert recipe over to new hook.inc initramfs-fsck-ext4-hook: Convert to hook.inc and improve initramfs-tee-ftpm-hook: Convert to hook.inc initramfs-tee-supplicant-hook: Convert to hook.inc doc/user_manual.md | 54 +++++++++++++ .../images/isar-initramfs.bb | 3 +- .../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 ++--- .../files/initramfs-fsck-hook-ext4.triggers | 0 .../initramfs-fsck-ext4-hook_0.3.bb | 14 ++++ .../initramfs-hook/files/hook-header.tmpl | 39 ++++++++++ .../initramfs-hook/files/script-header.tmpl | 26 +++++++ .../recipes-initramfs/initramfs-hook/hook.inc | 76 +++++++++++++++++++ .../files/{tee-ftpm.script => local-top} | 18 +---- .../files/tee-ftpm.hook | 28 ------- .../initramfs-tee-ftpm-hook_0.1.bb | 27 ------- .../initramfs-tee-ftpm-hook_0.2.bb | 15 ++++ .../{tee-supplicant.script => local-top} | 18 +---- .../files/tee-supplicant.hook | 36 --------- .../initramfs-tee-supplicant-hook_0.1.bb | 27 ------- .../initramfs-tee-supplicant-hook_0.2.bb | 16 ++++ .../files/initramfs.fsck.ext4.hook | 39 ---------- .../initramfs-fsck-hook-ext4_0.2.bb | 18 ----- 21 files changed, 254 insertions(+), 268 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%) rename meta/{recipes-support => recipes-initramfs}/initramfs-fsck-hook/files/initramfs-fsck-hook-ext4.triggers (100%) create mode 100644 meta/recipes-initramfs/initramfs-fsck-hook/initramfs-fsck-ext4-hook_0.3.bb create mode 100644 meta/recipes-initramfs/initramfs-hook/files/hook-header.tmpl create mode 100644 meta/recipes-initramfs/initramfs-hook/files/script-header.tmpl create mode 100644 meta/recipes-initramfs/initramfs-hook/hook.inc rename meta/recipes-initramfs/initramfs-tee-ftpm-hook/files/{tee-ftpm.script => local-top} (75%) delete mode 100644 meta/recipes-initramfs/initramfs-tee-ftpm-hook/files/tee-ftpm.hook delete mode 100644 meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.1.bb create mode 100644 meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.2.bb rename meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/{tee-supplicant.script => local-top} (68%) delete mode 100644 meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/tee-supplicant.hook delete mode 100644 meta/recipes-initramfs/initramfs-tee-supplicant-hook/initramfs-tee-supplicant-hook_0.1.bb create mode 100644 meta/recipes-initramfs/initramfs-tee-supplicant-hook/initramfs-tee-supplicant-hook_0.2.bb delete mode 100644 meta/recipes-support/initramfs-fsck-hook/files/initramfs.fsck.ext4.hook delete mode 100644 meta/recipes-support/initramfs-fsck-hook/initramfs-fsck-hook-ext4_0.2.bb -- 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/cover.1731755581.git.jan.kiszka%40siemens.com.