From patchwork Wed Dec 11 09:35:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "alexander.heinisch" X-Patchwork-Id: 3978 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 10:36:03 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f64.google.com (mail-qv1-f64.google.com [209.85.219.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4BB9a0kp029136 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 11 Dec 2024 10:36:01 +0100 Received: by mail-qv1-f64.google.com with SMTP id 6a1803df08f44-6d8edc021f9sf87900646d6.3 for ; Wed, 11 Dec 2024 01:36:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1733909755; cv=pass; d=google.com; s=arc-20240605; b=BQdS+8J1ZmpEEyNyvMYK2kjG8QuZOXuBZjkj/AaQ/MY00M5Ffn7dLM8AfzKqi5gz5P hF1vSsOZ+hOG5FXWT+iCHCFMGzV1Ikufr1ncR6EWPZwdC0zs6KR8y8veUWvBTGSAIcJY MInGPAybh6griSdvNjeCSIt3yu2WCZDUbNFJg+pLq0vXG3nwRBB89eaxDQvjZfziWqdd utihDT1KqS+cEL2aoIr2EIYSjujxi3KIC3s2uZgrLEzFiNwfzCZMggGTJe7OgO1859KP i5zVfY7dpyj6ZEMzxuI3zvShxr2ymchaoeZEFzHG8NRoFawwHtzv3F6cLiTFtwXuRQQi 1Agw== 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=NflPeFhp4A07wlgBAI9kC7MjqAohkZGFcMoiaqNLeQ8=; fh=JmafQDHJlYyE/wMBFbt0JoldtVdJdeTmyo7NxlAtdeU=; b=lRMUgWoswQuWs7GSUbl/HtmCl0Vba4O2FzCaWyDJ/bInoXw55Anrtw10Y/bwNMy2ig 4hDTx0OtQN0P2ZYlwXYVTNpUIINzvjPHlXcEI/evdzjCxgtWT5U6xC/rVuvcVucCvrdP 3XT1R6V/Cn8YN5etx0IFwtoQevM3XCy6RQNC6ZY+O63McY3+ooBpBXpA7EHkSOkUyiYG 0JoCudsZtuyhOSRzvRECbPsMLSg6/lgzW0pykdhirYdb0AupqBXoatYPFoyIfZ9R5lZ6 SPWMmlCL8S1WLboAzTUfiRpA52jkwbF0AuptOxT+C0YtRI7O+7R30V+MPh3kZMRT43s7 tbSA==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=CFlO+Ms0; spf=pass (google.com: domain of fm-1326448-2024121109355284d6ac4f7b328a16c3-wz84ik@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-1326448-2024121109355284d6ac4f7b328a16c3-wz84ik@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=1733909755; x=1734514555; 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=NflPeFhp4A07wlgBAI9kC7MjqAohkZGFcMoiaqNLeQ8=; b=Y3hRageSkOsjRCovTffqO5RLzPvgm7Lv6DRGFNgvtVbbLjtqLXk5xoOXxhazx3T1sK FXj62q1O4BoLkOD+iLjqLHWdBuJ302eR5TrBVxCsTCW6z2TZYT9KxIsjNEVM7wWLoGte IOouZb/gcuQmSmoLuIaJdOhkDF7oNWim/ytDHu6Zp6Y7oOGNNJUU1+6Pz/JglXv6shCJ TvjmwaVA9aE3CheKjjXIiO2w57ClQhEs+15u0U3HxLxnCblLVif7dh5nTkDplyHnoUko fCKvXxiGicnxup/9UT+OiNfq6PHxIxHpOU73hwsBfvQUjoR0U+gRCN+h875naHrToLHe H7yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733909755; x=1734514555; 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=NflPeFhp4A07wlgBAI9kC7MjqAohkZGFcMoiaqNLeQ8=; b=UVVNwhhmKr+0E+4uBOh9AfUkdK5ztQj8zVFOk7N5jfUtw/DmpEaRk/hZs6o7SIw5Pi NJevPV1OMVCzmGtAKYtcLM7a9TcpGi25ASZs60yIFYVmeqvOf1QfS8tS+wsUMmzsCCMf XZxsNLMVqrBu4oVy5DWNuzjyVRx/8kp4KiiiMWC1YD1ofYcxLG8RJk88WtCRClNN6S4C MRywl2F+3Oac+AAUzj7V8kstyRBCF2rqQSVdtsJ+pp4s4psR7cSOz0vhm3Wx6h/9Sejv WvNgPfRtDCa/YK3rJGlpsVFB1dNFD7A9MvJLw6G1vvp40engPc4d4VU9jNbpe54y4ITb g0vg== X-Forwarded-Encrypted: i=2; AJvYcCWDNZIpsTxxtoa9npeWGXl9fipZdgd/H/Rz3PewQLddgwbVnm8GBUYkGMywa7Cmm+5wfucwSBU=@isar-build.org X-Gm-Message-State: AOJu0YxBotwGvh1jqz8iiQ8T/VzB8zJR0KQ5T9g7s4MxdKw3/KLo4/mS jzyxXAKdVfE7UFInYDiN0UQHbV2CXh6rcZteGJInHkq9bjsAWuJf X-Google-Smtp-Source: AGHT+IF1p+zF6LNRfB2HnGgd3eHmtndUfOGqE6rojGeP4RIFkQAEFaZwqMw3kNv7aYzhmxP8wQ0A+A== X-Received: by 2002:a05:6214:f0a:b0:6d8:a967:8387 with SMTP id 6a1803df08f44-6d9348d32d0mr42689166d6.1.1733909755122; Wed, 11 Dec 2024 01:35:55 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6214:20ab:b0:6d8:b1cf:a07d with SMTP id 6a1803df08f44-6d931a79b5als8795876d6.2.-pod-prod-02-us; Wed, 11 Dec 2024 01:35:54 -0800 (PST) X-Received: by 2002:a05:6102:26c2:b0:4af:3ad1:a26 with SMTP id ada2fe7eead31-4b128fed5d3mr1985204137.16.1733909754335; Wed, 11 Dec 2024 01:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733909754; cv=none; d=google.com; s=arc-20240605; b=Q2TVcOMFmQ0wDV/+Oe2w0IdpeUaaKXYU2bXTcQI3/q8xqUqbn+z/R79UHDNMygFKrW BLpW+eUvIlhS7ApATkK89/266epH865AIex2l8YFlR+yEc1pQq1VZ2Eadf3DAkxC/cvA ZGkJBtrket7mm3CCHvNsh7D2+w0DCtrORb6G20eG53ZzZIg8XVpJWnmFiumuvNbdtEgf 64w1TA2ryg5Sle4wOjcNVY0mOE3BeDL+CGh1HA/ufxhbNill8TkfuW0BjuqVKxr0IHBG eu4MaXUHucmaU6SOHJfnpHCGlsv5q6Xue0oJCuWrXgc6qwNZ9Uoyi9RmPSgbkmBJXkfK NIng== 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=QUMDWkv8lqhoTxs9RyM0YbfHt654Annh+MYSjdseaV7dpzHs9Cc9f+5Oop6XwES0LB 7B+vGoddJqk27VZmnLOwtcmQq5O10XiKHLLUcshvevCR7C2dsac5b9OX3QczF7jBel2d e+PfbI7qfVOEavV55feFm/RaWMsBLpwxACzXdxDTlbHL3Ppc0Q3cC/eJApExkQ27GSpd WJLSQAZeIt0jvpnHpUT1R2p/Olk9CqXkix5CoxphX4RP15TUFnecZ8ZKfasd1aAe4RH/ R3hUyZ15hecbx7UglpmAR2QTLvWOMhdx8JzYPTJIWHl6T3h48mjvAowr481D//xzP63A T84Q==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=CFlO+Ms0; spf=pass (google.com: domain of fm-1326448-2024121109355284d6ac4f7b328a16c3-wz84ik@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-1326448-2024121109355284d6ac4f7b328a16c3-wz84ik@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net. [185.136.64.226]) by gmr-mx.google.com with ESMTPS id a1e0cc1a2514c-85c2bc8f161si518972241.1.2024.12.11.01.35.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2024 01:35:54 -0800 (PST) Received-SPF: pass (google.com: domain of fm-1326448-2024121109355284d6ac4f7b328a16c3-wz84ik@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) client-ip=185.136.64.226; Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 2024121109355284d6ac4f7b328a16c3 for ; Wed, 11 Dec 2024 10:35:52 +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 10:35:22 +0100 Message-ID: <20241211093522.43743-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=CFlO+Ms0; spf=pass (google.com: domain of fm-1326448-2024121109355284d6ac4f7b328a16c3-wz84ik@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-1326448-2024121109355284d6ac4f7b328a16c3-wz84ik@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=-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-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