From patchwork Thu Dec 12 12:53:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "alexander.heinisch" X-Patchwork-Id: 3980 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 12 Dec 2024 13:54:19 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pl1-f186.google.com (mail-pl1-f186.google.com [209.85.214.186]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4BCCsH8t003926 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 12 Dec 2024 13:54:19 +0100 Received: by mail-pl1-f186.google.com with SMTP id d9443c01a7336-21679e4368asf1118945ad.1 for ; Thu, 12 Dec 2024 04:54:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734008052; cv=pass; d=google.com; s=arc-20240605; b=TDBovtq0ubplriBdqwCUoxH1IBEAHd7UbCeT5x48tGz1TuyWWXH+zKmyuqWX/6FlBi bLIdplQn1bO4/77nsnLfw3Wrfezt2waMdmWZf6XE9TWI4cUHUgZKzE4RT/uGiz0boG+h Q02VwNwCotq7FzrdI9V6Qmv3R6v+4jAjpRaaGbcuz0/0JDitmvj5bo1uQ/q42E9Z/4A6 ghM9MfkdO+j1dCokTtk/GJceRX7avXZBGK1U1tFfx+VXTolDcLV9J9lU1NdEARafTAMD ORf1hpV094z7xMykerjMSpRDfYVhjJTqtytgLwtop/NXlbqOqrOFsbhDeoRXvv55fRII O0Ow== 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=dPVGvzQwGE48xx8Xhoyk+qmJTris9H6vGBnVyJVcw40=; fh=vGJhqhDtZng9+whWf5NITCt2BACezc/E2qeFk/AQ5mg=; b=L+kwqeCiEb8B61N6dZAAq8AsavnTUFyjVBR4actFBB8D0GQ1pi+0FiZmwlgg8WPjVv mY6hWMh+1rq8WmQLWJJkJNhAGZi9PVRkNZGDLT3Xj/gOLLp8DwBdL5LXvA2LxIwKBetP HTnEG5Iq1nFzlncSbGUO3oYelp8OTml4AUtZ0Py4TG1hSBumytNel21hWxs6UIlXYAtJ PgBaa8WozoEjcwFI4rRIlTfJutXIE/aA3NRl61MaGGQmuj1E8xl+sYV1Lcpk9e/4iYz1 1RwXvUws/iWup6Stjt+ZVGbWsCF8gFxbizEkWPOxoazdi0yCQwN/I9+9B5pN1eCgTw4G p5kA==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=HrpCXv5G; spf=pass (google.com: domain of fm-1326448-20241212125407e791431a10b5cc2298-zbekxq@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1326448-20241212125407e791431a10b5cc2298-zbeKXq@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=1734008052; x=1734612852; 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:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=dPVGvzQwGE48xx8Xhoyk+qmJTris9H6vGBnVyJVcw40=; b=iNDhnNF9IXxmaA8KtQtswaNfP3cXndS3NfOD+eJ/LwgfmA6vm3Tu2uTPyVK0s9USbA l0LX7HVdmmbXgXMNBjJa3Nd8z5Q/X6f1D4yPjYIWsl05/RpRiQ1HJ+Fs27yGnvnMlWwC gH8Ngb5TEqQjO4P5wPqvY6CWC4QbS41tj8czJhS9XMF905dy3lIIoo/Z9MSkv114gkIc SSjoGb7BeZMyblLo2Emp55bvpn3HqqcshOU3M5jlOBXae6wibIPWqYqURqUEIgVztjC5 JEyBZWS5MeeApL+vbeLLKwlzMrCsdStSx21HyXcd+6dXDbH/8gXlP3GAMZeRyumY1rCV O/AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734008052; x=1734612852; 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=dPVGvzQwGE48xx8Xhoyk+qmJTris9H6vGBnVyJVcw40=; b=Tl6Dbhowws5StkhLXDgCk3Lp+hnGn5K1TMttKFiovekJb8aRzBKnpAGKii2za7wT2R SA/iuno4TUG1gy/o5okog/yQa+olgn2noNEQtV9neybLnc0Rq5el0xdpBEsUoqVbkPlp 168uXSIUUArxNBTdCzw9IQb8q1FmgCHWUizUxFbL/icGYi46lWsr1H0WW608BMkLe5RH YWWw2dvrX3XeNnhJU2JVxaZg1UVIZ1N8AO3UlxTrJAwfklEcutsVGl8as/OVaMbXI1MJ 6KJCpbRHY0cPfx0oPOM33WkAGLszBwDhy9rdZnfp4tpn65qakAk/An5UA0b5uExa41XR +ouw== X-Forwarded-Encrypted: i=2; AJvYcCVtbH4MDW1qwlEb3DE1dCAUjveCA1w24McahSto/AHoHm4aw0uT1Sh5NLB2f2ePJwKqSjUtMQ0=@isar-build.org X-Gm-Message-State: AOJu0Yxs1lJS8qD+Qj0vs1SPl1jg53wRLFBLyUosppnvDhP4aIwBP60g GIjsg5CsIaexcCzykXwtSYVjNTMh9Cz8REVJowqNjsJ46UbZihxA X-Google-Smtp-Source: AGHT+IExlDkXtsq3tdFNgKe+JvEht0oTQ4Txfsss2FpfTr8VHE8MVyPBmi1PXbL37SgZwI2yaHzmLQ== X-Received: by 2002:a17:902:f68a:b0:215:aa88:e142 with SMTP id d9443c01a7336-217783ccb48mr39793145ad.7.1734008051936; Thu, 12 Dec 2024 04:54:11 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:902:e808:b0:216:5cb8:f025 with SMTP id d9443c01a7336-2178c5f3d5els1514975ad.0.-pod-prod-01-us; Thu, 12 Dec 2024 04:54:10 -0800 (PST) X-Received: by 2002:a17:903:32ca:b0:216:50fb:5dfc with SMTP id d9443c01a7336-2177838c378mr101036465ad.9.1734008050413; Thu, 12 Dec 2024 04:54:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734008050; cv=none; d=google.com; s=arc-20240605; b=lV8WtB1jPhbl9U8FzFxsJXt8thivNhJ0qMumvZQpwK3OiyzaLzVWodFHqj1L6YLriM wx/zwKBrPKHFbMChqFwHFDweblONWMbrQYdvkjRS/y3lap/u9/4owx4Dk3ybwkCNUDbf NBYgrjZG45xcu2ceJntXMIUCXS6VJfgsrRaNUZvSiKN1WCl5l/7hJrzKX6IIJFKB/J0P ay2Jl9Ivg9b/M7QLnG7MbLROfrpkkMc+5XPjAho/FibxhDu4KGivuxqYUzsuQsVsyAe8 5UDbs4uLO6kyc2yFsFkeXc/wGXfDjhjgXXWe0FPAcY0m6zr1rbRjBLk7j9wsn7GQWkJx 3R4g== 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=ZyRqX3qTNnVZ/mY03iXthIYZNCsqm6+F80CER9C1Mng=; fh=8QWtUpqP60l2J4iCqh8UnyHHQEjCwckEBR+rhHx1FrU=; b=O+WkpAiPwmvtNg7V3ZoN0Ql3GQNFbupUnzMldtJ9wCwrCmGtehzHBA3x18iJhvDx5h ftTgxaCkSbjg//cNV0pIGpVEq4rOD9qH6W6nnQNGfgxCI8S7zSE5HRl0eaO00hb+pstN A9+fCMuJK6XShtK6cMzPVlVM8QQj1FX2MfdAj7A/qNDRn6vL+rE3ioXThmMGmu3ZC0BM 7AHqbaQDch7lTpl3v/3HEAExykXGiUyej8lkgwhPmmDIZEVRhpQ1Ggx4ogogKojFz7Oh DrLGidnNh2Edl9Fprc1EZEbnc2VSl7JGNsyWO6DzbuRnRcMFGyXRWCyXvbcjdN3A/4ic wmxg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=HrpCXv5G; spf=pass (google.com: domain of fm-1326448-20241212125407e791431a10b5cc2298-zbekxq@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1326448-20241212125407e791431a10b5cc2298-zbeKXq@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 d9443c01a7336-21637015a98si4715235ad.7.2024.12.12.04.54.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Dec 2024 04:54:10 -0800 (PST) Received-SPF: pass (google.com: domain of fm-1326448-20241212125407e791431a10b5cc2298-zbekxq@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 20241212125407e791431a10b5cc2298 for ; Thu, 12 Dec 2024 13:54:08 +0100 X-Patchwork-Original-From: "alexander.heinisch via isar-users" From: "alexander.heinisch" To: isar-users@googlegroups.com, amikan@ilbers.de Cc: Alexander Heinisch Subject: [PATCH 1/2] isar-installer: Added option to add additional kernel cmdline arguments for isar-image-installer. Date: Thu, 12 Dec 2024 13:53:46 +0100 Message-ID: <20241212125347.76001-2-alexander.heinisch@siemens.com> In-Reply-To: <20241212125347.76001-1-alexander.heinisch@siemens.com> References: <20241212125347.76001-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=HrpCXv5G; spf=pass (google.com: domain of fm-1326448-20241212125407e791431a10b5cc2298-zbekxq@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1326448-20241212125407e791431a10b5cc2298-zbeKXq@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_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. isar-image-installer allows to specify several parameters like: - installer.unattended - installer.image.uri ...file name of the image to be installed (parameter name uri chosen since we plan to support download of images in upcoming patches) - installer.target.dev ...target device name (e.g. /dev/sda) for the image to be installed to - installer.target.overwrite ...strategy how to handle target devices not empty (possible values: OVERWRITE - overwrite data on target | ABORT - abort installation if target not empty) to execute image deployment in "unattended" mode. 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