From patchwork Wed Dec 11 08:42:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "alexander.heinisch" X-Patchwork-Id: 3979 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 11 Dec 2024 17:28:22 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oo1-f60.google.com (mail-oo1-f60.google.com [209.85.161.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4BBGSKhE031323 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 11 Dec 2024 17:28:21 +0100 Received: by mail-oo1-f60.google.com with SMTP id 006d021491bc7-5f2d35920e0sf336167eaf.0 for ; Wed, 11 Dec 2024 08:28:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1733934494; cv=pass; d=google.com; s=arc-20240605; b=NL4vofTCeyj6lgqd9UlMoscaL6WIGE+Bbxdxbgit+IvyS9rqLtsR0NZ2Ok17NVfgla o3tJJbQHnc00pWcBPHMSI82ZvMcmjMbPb9k6+jAgkylUmQibUBEGi93Q2snJINscCkRn RjHOssxHZHF4vg0OjSeU0bR1lA8d3p2D3iqUAoanw50g1+sETlySiU6QBYTR7Temy2Bl IdneySvfrm5MZfb99wjt4UgrBSXtz5BGmgyXzJFHtuxO4arGQJQKPwyyaogjRGRBVTdI lAxheb1iA/Gct0kzvz4GE2hOPFCkifhQM1f0mSCGcMrf+nJ2sma/8nTTecyJ3ESSpOKA HXcg== 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=MxImTgpVVPVmvTtabM1AFnWx7kb9whIP+wcDAUHvZUc=; fh=3VdDyhwaI97UnV7F5Dd7K0QS+/GbS4gN/v1KRfB2hfQ=; b=CytzfmgN6jBAIKFK8v4hd5cxzRJ7rajZsfBjUjspVd6J3aBnDhs39/DHrVdm87vrPf Sgk16xsGB9XIxZliP/fKFwnpQYz6M1TsOS4IBDOyRYZHfenXw94PEQyKUc8ac2W9k8JT KvUbaR5SFcAXAW34ve55r4fQZOS8Msd/Qy7YLXMlEfE7jn3kZuFUMxev4obdcZjYIkZh epLMi0GJTJdHWqAbm7phU/63XHxrNLAWnQpH3+ChLTsV9sBCQAceai+NAWa7vNBDHu0L IACKV5pQAaLe+PLqqAS8T2jyVz0gx9YgglUl5pVH9si2rXC6yW66wKpqGfl/m0F9DB1x jbuA==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=DixdUKq1; spf=pass (google.com: domain of fm-1326448-20241211084319d26460ee5064e29e0d-cln2jx@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1326448-20241211084319d26460ee5064e29e0d-CLN2Jx@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=1733934494; x=1734539294; darn=isar-build.org; 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=MxImTgpVVPVmvTtabM1AFnWx7kb9whIP+wcDAUHvZUc=; b=Y/6BiqTYZ0aRAHx0yFHPWFsQLAC3jnsmrKk2UaiFODSftBY4d1GrYt2u9pIZqsmWgD UcMPlD0C8TlAM3MKLuFc0eoEmFbnqYc/5o2C+QK+erc960zAwIB83KLzBgID9Cu79Mt1 FETrFoMFWXwSGGNSggp8XPJ+IlMNb8ih3gO03i9htna5WwgIQDt6cm6tUr2CraOKAvcY 0W39D9+A77MSeEmTnwl6RX8cZrEiiYK6PvEz5yIVHTpMMKsI/liEegnGCaVXQgowpGWV Q+olskiURmt4j4TnsmBAG2nrVJhd+8tBPOqkEVLjGAxTiMvKyhSDqihFnQ85EJUcQ7wR fDHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733934494; x=1734539294; 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=MxImTgpVVPVmvTtabM1AFnWx7kb9whIP+wcDAUHvZUc=; b=tUz4hBxUxY0aLjXB+QpgFqFQHySeOnmZOg4pmrMl3gg1Cq9rXmaHPI9c399AFTl7os WebEhKO4Ym7nX1pQnz9Xg62Rf1u3gbJMaWHoFTWxCQQSI3s8WEY9PdUIld7W1Pe5reuW t2IldIMVxZ7sBGj2y5us1HCPmrbUAXsa+PcU1ULclme6zCUB5ELEnQfkUaLBV4aUk5DL MX3eFOTxqEZPSGj0saVD7k/hanV6M5utUssNJG7If/mwQ4IoLFV5U5Nosk2XtwJG+qDa xkVqyDY5ZCpEHKUmpQsKNy9WIwJXiPvB2ccY+T2vyLBV6ws0ssWiOSmXMqYBf0KCUwMW ZU4A== X-Forwarded-Encrypted: i=2; AJvYcCWH+UDDwTolq3hb+D4KsLQnT4tP/Cybe8ZbvtmdkFcSQmziH4n7GAIzvjzX5DOao0EMRmGeuwI=@isar-build.org X-Gm-Message-State: AOJu0YzOQUfJ26INb1W/r1sp12aAOaLU+x4MLV1mOvWYMjfSHqwVqQJz K4Jf7/N69XR5p8bYHWZS+Dh5txpYEbvXRJhKdMa9Ceg6HQ5S53MN X-Google-Smtp-Source: AGHT+IEpWhAcMPmymFlvPU+/aIbHIfEPhWywVqgYKnrFFzDkp/ra5ivj2kLqKofRwnKdtIzKt0t21Q== X-Received: by 2002:a05:6870:3324:b0:296:92c6:60b0 with SMTP id 586e51a60fabf-2a012e1d331mr639448fac.7.1733934494457; Wed, 11 Dec 2024 08:28:14 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6870:e388:b0:2a0:20b2:3aea with SMTP id 586e51a60fabf-2a3841a6a6bls21803fac.0.-pod-prod-03-us; Wed, 11 Dec 2024 08:28:13 -0800 (PST) X-Received: by 2002:a05:6870:a105:b0:29e:65b3:27f5 with SMTP id 586e51a60fabf-2a012c5a94cmr2093408fac.19.1733934493370; Wed, 11 Dec 2024 08:28:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733934493; cv=none; d=google.com; s=arc-20240605; b=NF7vTghpVdHMwJcYkfM6AzoedejTnqfVwz/UA3UnpEt8U5eL3I6uRcdm5kpnIWefZ0 Aj2D9+XyzhP+4r+iQhErbUSMnlHPwAy+A+j7GVE4NBmcmZOXL0gGXuKkqqc9aQETZLRD p2Sq28Y4QrbATYv7+96MTED+cEZshwYIDpyBaV4GaMpnO6xaStBmoPfna8+HRGZ3MNll hSaQi6cBEIL8hkMfZ3y42o51xAz7M/mdFpw+qQFF0S/SIAigQcgUEphNhYBDFKe+kwCk lb0Il7+XvA21et7WPZ3doCwQ/Hj513wwmlXYK76fWDgJUkGJIYc4zIZKYReJ/A4lZqBa ntbQ== 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=LHXfalXBaAumZwGSSebQlXrl3JX4e5z/+3XaLW1vPHk=; fh=p2NZNdSy+UicSjYUSvZGU+QYmFFPVZWXjWkELGSBm8Q=; b=ee7IaxPDVUBOb78tBARwHhWu2dFKD9lT3qgBF7lNtv2tPZRDU404FB3L4PCRzvQO/E 7G0gLrOvpt3vvL5hqWbYOltYsAqDSJSHJdcjY+ekeX97jS4GgAjKRaJcznwdZx6OmN17 cibYaQS8N4PN6xh25Q9DDbHQKLft4S3Upt1zw6NufMjtCs1fMW2puounUUUd/WgGrHkH 6JvVWUxk9DyghKMGtNqVzWb8W5D9sC/Nioi6wU92M/bfMjLLPs2DGt4QQDknC095w6Qv 7y75MDx6GnQW7q0GrwqzS1loQ5Zk+Rur6+VOKI1PKml8EbaX1iKhA9LefjmHzeOEAzd1 BXGQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=DixdUKq1; spf=pass (google.com: domain of fm-1326448-20241211084319d26460ee5064e29e0d-cln2jx@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1326448-20241211084319d26460ee5064e29e0d-CLN2Jx@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net. [185.136.65.227]) by gmr-mx.google.com with ESMTPS id 586e51a60fabf-2a000cd4654si180815fac.4.2024.12.11.08.28.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2024 08:28:13 -0800 (PST) Received-SPF: pass (google.com: domain of fm-1326448-20241211084319d26460ee5064e29e0d-cln2jx@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) client-ip=185.136.65.227; Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20241211084319d26460ee5064e29e0d for ; Wed, 11 Dec 2024 17:28:11 +0100 X-Patchwork-Original-From: "alexander.heinisch via isar-users" From: "alexander.heinisch" To: isar-users@googlegroups.com Cc: Alexander Heinisch Subject: [PATCH] isar-installer: Added option to add additional kernel cmdline arguments for isar-image-installer. Date: Wed, 11 Dec 2024 09:42:56 +0100 Message-ID: <20241211084257.9489-1-alexander.heinisch@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1326448:519-21489:flowmailer X-Original-Sender: alexander.heinisch@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=DixdUKq1; spf=pass (google.com: domain of fm-1326448-20241211084319d26460ee5064e29e0d-cln2jx@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1326448-20241211084319d26460ee5064e29e0d-CLN2Jx@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: alexander.heinisch@siemens.com Reply-To: alexander.heinisch@siemens.com 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=-3.8 required=5.0 tests=DATE_IN_PAST_06_12, 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Alexander Heinisch In combination with unattended mode this allows to specify several settings like target device, target image path, aso. to be specified during buildtime. Signed-off-by: Alexander Heinisch --- meta-isar/recipes-core/images/isar-image-installer.bb | 1 + meta-isar/scripts/lib/wic/canned-wks/installer-efi.wks.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-isar/recipes-core/images/isar-image-installer.bb b/meta-isar/recipes-core/images/isar-image-installer.bb index dfce311a..a325ab9f 100644 --- a/meta-isar/recipes-core/images/isar-image-installer.bb +++ b/meta-isar/recipes-core/images/isar-image-installer.bb @@ -10,6 +10,7 @@ DESCRIPTION = "Example of a ISAR based Installer Image" # Use variable to switch easily to another wks INSTALLER_WKS_FILE ??= "installer-efi.wks.in" WKS_FILE = "${INSTALLER_WKS_FILE}" +ADDITIONAL_KERNEL_CMDLINE ??= "" IMAGER_INSTALL:wic:append = " ${SYSTEMD_BOOTLOADER_INSTALL}" IMAGE_INSTALL += "deploy-image-service" diff --git a/meta-isar/scripts/lib/wic/canned-wks/installer-efi.wks.in b/meta-isar/scripts/lib/wic/canned-wks/installer-efi.wks.in index be8127cb..ecc6adbb 100644 --- a/meta-isar/scripts/lib/wic/canned-wks/installer-efi.wks.in +++ b/meta-isar/scripts/lib/wic/canned-wks/installer-efi.wks.in @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: MIT -bootloader --ptable gpt --timeout 0 --append "rootwait console=ttyS0,115200 console=tty0 earlyprintk" +bootloader --ptable gpt --timeout 0 --append "rootwait console=ttyS0,115200 console=tty0 earlyprintk ${ADDITIONAL_KERNEL_CMDLINE}" part /boot --source bootimg-efi-isar --sourceparams "loader=systemd-boot" --label efi --part-type EF00 --align 1024 --use-uuid part / --source rootfs --fstype ext4 --exclude-path=install --label installroot --align 1024 --use-uuid part /install --source rootfs --change-directory=install --label INSTALLDATA --size 4G --fstype=vfat --use-uuid --align 1024