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; Mon, 11 Nov 2024 21:50:34 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-yb1-f187.google.com (mail-yb1-f187.google.com [209.85.219.187]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4ABKoXkh014802 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 11 Nov 2024 21:50:34 +0100 Received: by mail-yb1-f187.google.com with SMTP id 3f1490d57ef6-e30b8fd4ca1sf8779783276.3 for ; Mon, 11 Nov 2024 12:50:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1731358227; cv=pass; d=google.com; s=arc-20240605; b=hG3U/XnhK/frrTuPQ7DwrGlg9LNjOMvhG2ZJbEzL86CiWFiM/7S48P15RNHP30RWNS dEfVfU8HUoKLyNA/eWete6QmUsp6AjVY0pwbKeQxzZcKv9rUZcR0iD/Tq8jns/V8CE6T le/yVpg1X83odjxUs4QLwzn0m0qojrNhuFyJFLVKDIzMdQCw42eEdrqZF8YBC1sDPSLE pHoRAWFBgdiBTIZs/BNTfCQ+AePYI+bPy1KdM+nC23BxM1KurtfglOp6FP79SZJpBEgQ Ap8u19hGh5E/cbtgcQsx3KkdIF0EXWxu8hqMVrpgAEKjwyxQdDsoyKfrBNKU/3q/GdJ+ 2+DA== 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=hrgjvrOT0BGgovPHB5LqjehHiow5W4JH+VZuAPWyHw8=; fh=EEJYhEqNLW/8djb8VargHu1UXts6sG5azexo24pC8SY=; b=EI5NxHVf79zhzpU2fX8rGnFIDuts5lEdeUUoUMBE9wn0cF/WQ//4sGOqmRnkDYaPOH JeNd0gVQ46RNVvzgmrtDj7DFnlMooeVObEUa2wQPs3dHDn6Ym4Kq6cqY0WTf4ICTQP/z wqjFm1RkL3DvctB4bWybXnPDhIYk/c7agy06S5vDcMsm3pPzOK/40M/pp+sBlz7k50po e1i4XTJTYLskyPjnXFuThijLhumGIobmFrj0WuuV1DJGII9V44MozdaW9RY3TjLIY4hR BrtkT4LtZvbT9F8Kyih6djpLYUg8V6X7+1j3Bse14CF93gZTuSWudc9N9xWT9W6TbBCP RGbw==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=hJZa238l; spf=pass (google.com: domain of fm-294854-20241111205025acf012d7175882edd2-6uyj6k@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-294854-20241111205025acf012d7175882edd2-6UYJ6K@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=1731358227; x=1731963027; 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=hrgjvrOT0BGgovPHB5LqjehHiow5W4JH+VZuAPWyHw8=; b=Katv0dFZAW69eeurz24HbLwphD/y8GY3X0jO2UfEALRJovHAxzv9bFT1HcyO4qgA/X 5k306J0rGgMprye78kLdEHaQZXauuVMhIGZW66NwYIwkYwVh0X9scuXy+DnpJnkgGOei 3yB9Ozfd/AcvdfaLIO9OyVegm8M+kLDfZalU3UJI1JnRkoKpv3g9X9ywuv5zWXcF+cfi RE+Ofp9q5c8/Du24gxRhfdPSrJgLY9bIyMTh/iwP8a6LY0V4yFmSyd6CDiNK4oRX1YTv cmCBYhlPTzN4ixLsdVpkziBrxHAm0moq/kjVWsh7B6fKyAkerwSEDIj4uvgYGunH3Nds TRXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731358227; x=1731963027; 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=hrgjvrOT0BGgovPHB5LqjehHiow5W4JH+VZuAPWyHw8=; b=dHoQG7waCKrIF4MuzJE2p9l5yDfAfqZR5uqkJISlvKXvtER1XUznX2uXVuKxpT8dJ/ zEVPGJIblJS6RlUxbJCF+lKlhJzvRHKuFGO9Pr9yFkGDeENCFzPgGkGG/N24WTYGWHyy 9PAgbvZaEyvh7tDr8XDZp3Y+Ae0w5EdL3MEI7kyWKp41Dr4iKUKqQtjskl4Eb/L1Akw1 91r5BPZO6RwgNN1ouK2GrHRilNaudtBKXw9FF7BlY8Dlz6OXJybbPG/7roGejTCTC0wt fg92zIDv1XTC169REMCqtGXkKNRGu1qK9TEnuPq6EVKlwrwnM5uHb0a7ACxZGznG1+sd 6naA== X-Forwarded-Encrypted: i=2; AJvYcCUhmlJvbp8oQoJHs6nuQgNzUl/JmJkuxXEBuKHKAJBdB+ClKax3d7OQ/hW7ClIOAHOyzp8p@ilbers.de X-Gm-Message-State: AOJu0YxmRgOe45Pqt2QMaBvZVgGjVNqSgTpB6NtWId8kN/9ETcIZcar9 UDgsCe3TfZRZWrLrShyjxR/DGF2wXdmVEHn+HWj8wQzAb0HgjtsE X-Google-Smtp-Source: AGHT+IGTeVJ6VWrmDRYj0X7lAbm8Gmd6FHMyr16C5CmZQUZLZ7QwXFsSwYoVxHHf4nUMj5y2gSxbEA== X-Received: by 2002:a05:6902:2b03:b0:e29:6f57:226a with SMTP id 3f1490d57ef6-e35dc5f971emr383901276.47.1731358227669; Mon, 11 Nov 2024 12:50:27 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:622a:4814:b0:460:378f:7f5e with SMTP id d75a77b69052e-462fb333f16ls11573621cf.2.-pod-prod-01-us; Mon, 11 Nov 2024 12:50:26 -0800 (PST) X-Received: by 2002:ac8:5fd3:0:b0:458:318b:556b with SMTP id d75a77b69052e-463402ebdf8mr874191cf.35.1731358226575; Mon, 11 Nov 2024 12:50:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731358226; cv=none; d=google.com; s=arc-20240605; b=P1VQsm4ulVns5XeCYta+lWiAZoOEjpllG/oHurXytWPeCy6G1QpY0Z9PzrJgJDUFdm XMkVzKUA4K/YuUENymeADVR67rwtSlMKIXWJK/DsIGn+ynhRE1feu9HhGDkSPyfDyZmc e0Pc8klImbgbOhxBo3BqbcKVZR0+mz83CK7e2o+r4gHp70Qika/ujRBkMotKpLi2U3Z1 VYpfq5Gdrn3yM8yarJ/4zbru0txpcKyOdMa0JG8P2EKYAxY6dmaeUFJgjfDoma8No1kK pJ/lXI6JEC5eLGKGO+YjaVcQNbkQ6ghV+FuHMBdH2TE4fh3SxLGIiBYzrtR17RkMT7v8 t/pw== 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=KEsNX9Ts11MunoCDwVYEN+Zjav8uk+PC80Zx1V9FdNA=; fh=TWGwN84gUgHIe5O4CbyH9KISyeWwGbvUX7cnJPxVD70=; b=TkSaxE2a25GQkCRJ2U0CIwPF36qIPwz3h/s11UXzWcFSTM2p7YYsdHSvDn3cmE8hi5 RXO1qnSp2QDf+mAUliXW7v63p5E6n4TGitD38OgeTtgd8USKWiD4P+gYeEtXUy9r7Fm+ X6AzSc2FwJIPm4U/KCaCjFDOTEXMhZQ8bKiKzr3/417aFiFbPHx6z2kJcKEtBZnktXYW xvPSzkrtsJrfJPJPs3DP2XRoefrA6i7aNZ+HX0Tn+eiZ7CNwqce0lyCNDIcMvXX/DECp s3ZeLypD4yHzIuzGX9mrxkVsV7TrnQwmF0qlJnJMB2SfOcHsNr0KDDkENbYQrc1gBmvt 2iHA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=hJZa238l; spf=pass (google.com: domain of fm-294854-20241111205025acf012d7175882edd2-6uyj6k@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-294854-20241111205025acf012d7175882edd2-6UYJ6K@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net. [185.136.65.226]) by gmr-mx.google.com with ESMTPS id d75a77b69052e-462ff3e9a95si5054251cf.1.2024.11.11.12.50.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Nov 2024 12:50:26 -0800 (PST) Received-SPF: pass (google.com: domain of fm-294854-20241111205025acf012d7175882edd2-6uyj6k@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) client-ip=185.136.65.226; Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 20241111205025acf012d7175882edd2 for ; Mon, 11 Nov 2024 21:50:25 +0100 From: "'Jan Kiszka' via isar-users" To: isar-users Cc: Quirin Gylstorff Subject: [PATCH 0/7] Simplify writing initramfs hooks Date: Mon, 11 Nov 2024 21:50:17 +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=hJZa238l; spf=pass (google.com: domain of fm-294854-20241111205025acf012d7175882edd2-6uyj6k@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-294854-20241111205025acf012d7175882edd2-6UYJ6K@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_H2,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: EZ3KEyTLTXAI 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 | 74 +++++++++++++++++++ .../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, 252 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.1731358224.git.jan.kiszka%40siemens.com.