From patchwork Tue Jan 30 09:10:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 3322 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 30 Jan 2024 10:11:21 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f59.google.com (mail-pj1-f59.google.com [209.85.216.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 40U9BIDJ005866 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 30 Jan 2024 10:11:19 +0100 Received: by mail-pj1-f59.google.com with SMTP id 98e67ed59e1d1-2946b8aa729sf1906299a91.0 for ; Tue, 30 Jan 2024 01:11:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706605873; cv=pass; d=google.com; s=arc-20160816; b=g3GYTUbQd/tskp6OS0FAuFw8FLdtb4TGjQMXwSaj+3dcs3RHavXBrpiCESlaTyC7/Y cJ9lCWD3P82AJenjQnp1wFOkKYopGO7vbUxUtLu2eeUvIA+ivibvF1cNgtrVBP9eQVBg 1dKKvUriiMU96jDWXC5RgjvQIOSDQUVQOwzZXOfzO3BhpjG5AVFZ7zvfCD+YCtKagl7P 84bFtj56UWalnH9VS+Mn7czpmUGh0ztPiqzXh0LKGIgBuhjXjtXWhtigi12kLDsmpbgL UIgbpsFcpPdCMnygM2QnL43WnWHgrocTyr7lagA0DMr7ukGyqvbNlNHSQLSSWE7391Wx bacQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:to:from:dkim-signature; bh=GDN6U+w8XpKhxoczpRQoP0FlvLzdXTFN0t6+SAeSHq4=; fh=8twDZmW8gO1rbk8Q0lbgJn2zDoF9iBoHyxtCasOXU/M=; b=zW7LsydR5CdMyl0D07t5HGCppSrfUwh7o0bJYSdqdovbgIfSITU99Mf6L8lNRoFVbH I0bH+HDMkB39QqkLLoyicCp+qdhggw6DdVAixql7u0xV2+QlgYDF+CDf9Id4+Ua78iMA lkvS2AcOUxE05aTPy+LlDnuqP4hNyMmEipweT30roojrLjyoaQd3zbHLdsEUlLmcgJRM knY6BcQrV0XeatVFiYYb7UMkH7mnGTUsXNE4IlMIPH9Ftao0wz/quudNGm5UfH2xGicH ytBjOqGVX2j57zyjXS9hLDslnNjdXp9h+Eknx6M/Sj7NNNyBNKQpKgPjhJqb3Pipc02c qyzA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=eRsCUqiK; spf=pass (google.com: domain of fm-51332-202401300911092401fd94a49848aebc-d_lbey@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-51332-202401300911092401fd94a49848aebc-D_LBeY@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=1706605873; x=1707210673; 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:to:from:from:to:cc:subject :date:message-id:reply-to; bh=GDN6U+w8XpKhxoczpRQoP0FlvLzdXTFN0t6+SAeSHq4=; b=HAkjCGTpo8Y1PN+T2ZEyQZfq5MCuAr5A5LPUxyZLD2AjusvdwtlGOVeRP0n9dk/Q6b 5kzm2/skXaSYNLwarBEjNAfbaxzR2owdp866GtDluCYpaIo4ykn6omPngyY97uWrnePa r+FfGwgtk+2ugdYUGvgJrVrtOhqbnubF84X5LY9xOOlMon2Un+LQiUm8iNeaM0D9buJk 8Rm7KBAMUYwv0U7nbrVBlYOTbXvrYPNVKKZb/C5eWrf0xJlndRNBq3gcLIl3rkPm13FG 7U3wZxOnWU8od9kGraUrW132kd8z6vOhf7R84/hz+wmSfC4dG9WolHe5PTbnOqaUEU2C WxyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706605873; x=1707210673; 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:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GDN6U+w8XpKhxoczpRQoP0FlvLzdXTFN0t6+SAeSHq4=; b=fLTF/be4MG0veWrMpCUlY0qawD7vYba1DIBFKBvYdiOgYsLa4wUxUPzJ9PLr0xAbOq 3KN14fNBJ2Yw+xfXgnS+X1JIyeUDXZdkIj6B9/6d78/BAvvND+uCJs+KE70EelVcC5DL l57z3/PLHkDpAZNZ1iSsF78QXZmsfh6hcC8PNwcQyLAbj8m8J1wgFr1IXevpuh+Z4oky X+W0iABQpvlQAa/FYcxR1/MWL4uHeyv4B7+nL7tkW3mlGF4cxbUrliNNLRENS5dZD/c/ DzIMtu92bCF+2gcGQTxtD1WNQTK0L27EoU33Vi3l9MnoviGOjf2RfgscLlCmYaZtptJ/ G7pw== X-Gm-Message-State: AOJu0YxHe73C2JglfwZD132VLRTWPJlCpa3abMj+vs01GutUpsGjGCuN P4EAF6COtpNg2dxtVbj5AUhF8ScmCJo7zgkAHv92nNHcSbyh9dHX X-Google-Smtp-Source: AGHT+IFD0BJqqTQXGmy5oTEFSpha8TZPBEv+0pcfMMqIRoOmAzVQZ+lrLarnBe1osvyP+Z4P3kTd5A== X-Received: by 2002:a17:90a:1181:b0:28f:f2c9:3908 with SMTP id e1-20020a17090a118100b0028ff2c93908mr4017595pja.25.1706605872899; Tue, 30 Jan 2024 01:11:12 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90b:1d85:b0:294:b2ff:e4a with SMTP id pf5-20020a17090b1d8500b00294b2ff0e4als1307094pjb.1.-pod-prod-05-us; Tue, 30 Jan 2024 01:11:12 -0800 (PST) X-Received: by 2002:a17:903:40cb:b0:1d8:d599:c014 with SMTP id t11-20020a17090340cb00b001d8d599c014mr4316609pld.50.1706605871850; Tue, 30 Jan 2024 01:11:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706605871; cv=none; d=google.com; s=arc-20160816; b=ipdtbgx6UB2uHxBA3o7/G48YO5Rdt8Kpz2m5an2GABAYlThxSRTKWac2AJX4aRd6PE SA63ZSvNb/lwrhh8BgP3hn2D1MYxj8rGhQjVczzE8sWOjk7cOhby0NHzE26+TCVgvU5J salBJq/2G5wwZOJ15XbhifkOECXbNYl1pokvwbSCdwlgrT7vR94DfUz2EqMNsAuf3cqL xHBKoCfQwF0erkxL0QzIvktNZkQnjx/f5/m3V+32pd/4QZdoEcPcqAePaL6lTBWbwwSH b61MvQ/xDZ8tny1i6xt4FHpu0SxwfpTMOmUkCS151c+MA6CxKfdQf/T9QpsMEgd21V9E 7O3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:to:from:dkim-signature; bh=ipJH++4Ql5whSdboO4nWaFCg3iHz5IOIyupbwZ/9o+I=; fh=8twDZmW8gO1rbk8Q0lbgJn2zDoF9iBoHyxtCasOXU/M=; b=vAGrIa6bL8OMRwVkzUeBfUxsdyf6chuxhxLhTo6NWUtvBL2DO+W6ox/ywqx/dPhoEN zBEkYyCXJhEdqMwnn4ClQVfBcLhEbRSJHqaHAHFkaj9n7qGhs2oWTPK1vNZAfeMkbjqM xOozJed/pOXG21FjgTbTUAtZab8ufMXgbasjvPYjXN0HZm0SE7CZwzou53Nj0LgYRAea TctId+BoEAUM5kT4rCx0WS0SrDF2KBkMxiTdOw7LWIPWwDwZzmZFVk0avYe+BNRV93fS ftXnWET5C0vi7MyAtEjkHGDmaHrFCdBc5UKSiElyUR5Kjh6WN/x672gd1sgAfl71edIM /gKg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=eRsCUqiK; spf=pass (google.com: domain of fm-51332-202401300911092401fd94a49848aebc-d_lbey@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-51332-202401300911092401fd94a49848aebc-D_LBeY@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 h12-20020a170902680c00b001d72000bbf8si1019037plk.5.2024.01.30.01.11.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2024 01:11:11 -0800 (PST) Received-SPF: pass (google.com: domain of fm-51332-202401300911092401fd94a49848aebc-d_lbey@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 202401300911092401fd94a49848aebc for ; Tue, 30 Jan 2024 10:11:09 +0100 X-Patchwork-Original-From: "'Quirin Gylstorff' via isar-users" From: Quirin Gylstorff To: xujiew2015@gmail.com, isar-users@googlegroups.com, jan.kiszka@siemens.com Subject: [PATCH] add simple installer to isar Date: Tue, 30 Jan 2024 10:10:12 +0100 Message-ID: <20240130091108.511214-1-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-51332:519-21489:flowmailer X-Original-Sender: quirin.gylstorff@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=eRsCUqiK; spf=pass (google.com: domain of fm-51332-202401300911092401fd94a49848aebc-d_lbey@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-51332-202401300911092401fd94a49848aebc-D_LBeY@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Quirin Gylstorff Reply-To: Quirin Gylstorff 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=-1.2 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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: Quirin Gylstorff This is a example to create installer image which contains another target image. It uses a multiconfig aproach to seperate the settings of the installer from the target settings. Signed-off-by: Quirin Gylstorff --- kas/image/Kconfig | 14 ++++ kas/image/isar-image-installer.yaml | 13 +++ .../conf/multiconfig/installer-target.conf | 6 ++ .../conf/multiconfig/isar-installer.conf | 5 ++ .../images/isar-image-installer.bb | 17 ++++ .../deploy-image/deploy-image_0.1.bb | 21 +++++ .../deploy-image/files/deploy-image-wic.sh | 83 +++++++++++++++++++ .../deploy-image/files/install.override.conf | 5 ++ .../store-target-image_0.1.bb | 19 +++++ .../lib/wic/canned-wks/installer-efi.wks.in | 9 ++ 10 files changed, 192 insertions(+) create mode 100644 kas/image/isar-image-installer.yaml create mode 100644 meta-isar/conf/multiconfig/installer-target.conf create mode 100644 meta-isar/conf/multiconfig/isar-installer.conf create mode 100644 meta-isar/recipes-core/images/isar-image-installer.bb create mode 100644 meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb create mode 100644 meta-isar/recipes-installer/deploy-image/files/deploy-image-wic.sh create mode 100644 meta-isar/recipes-installer/deploy-image/files/install.override.conf create mode 100644 meta-isar/recipes-installer/store-target-image/store-target-image_0.1.bb create mode 100644 meta-isar/scripts/lib/wic/canned-wks/installer-efi.wks.in diff --git a/kas/image/Kconfig b/kas/image/Kconfig index 8e617386..be6d7019 100644 --- a/kas/image/Kconfig +++ b/kas/image/Kconfig @@ -22,11 +22,25 @@ config IMAGE_DEBUG help This image includes some tools preinstalled useful for debug. +menuconfig IMAGE_INSTALLER + bool "Installer image" + help + This image contains a target image and scripts to install that target image on a device. + +config INSTALLER_TARGET_IMAGE + string "Install Base or Debug image" + default "isar-image-base" + help + This selects the target image of the installer: + - isar-image-base + - isar-image-debug + depends on IMAGE_INSTALLER endchoice config KAS_INCLUDE_IMAGE string default "kas/image/isar-image-base.yaml" if IMAGE_BASE default "kas/image/isar-image-debug.yaml" if IMAGE_DEBUG + default "kas/image/isar-image-installer.yaml" if IMAGE_INSTALLER endmenu diff --git a/kas/image/isar-image-installer.yaml b/kas/image/isar-image-installer.yaml new file mode 100644 index 00000000..f9a3d346 --- /dev/null +++ b/kas/image/isar-image-installer.yaml @@ -0,0 +1,13 @@ +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + +header: + version: 14 + +target: isar-image-installer + +local_conf_header: + installer_multiconfig: | + BBMULTICONFIG += "installer-target" diff --git a/meta-isar/conf/multiconfig/installer-target.conf b/meta-isar/conf/multiconfig/installer-target.conf new file mode 100644 index 00000000..254c91a6 --- /dev/null +++ b/meta-isar/conf/multiconfig/installer-target.conf @@ -0,0 +1,6 @@ +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + +IMAGE_FSTYPES += "wic.xz" diff --git a/meta-isar/conf/multiconfig/isar-installer.conf b/meta-isar/conf/multiconfig/isar-installer.conf new file mode 100644 index 00000000..11afcb85 --- /dev/null +++ b/meta-isar/conf/multiconfig/isar-installer.conf @@ -0,0 +1,5 @@ +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + diff --git a/meta-isar/recipes-core/images/isar-image-installer.bb b/meta-isar/recipes-core/images/isar-image-installer.bb new file mode 100644 index 00000000..27de03d5 --- /dev/null +++ b/meta-isar/recipes-core/images/isar-image-installer.bb @@ -0,0 +1,17 @@ +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + +inherit image +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}" +IMAGER_INSTALL:wic:append = " systemd-boot" + +IMAGE_INSTALL += "store-target-image" +IMAGE_INSTALL += "deploy-image" + +IMAGE_INSTALL:remove = "expand-on-first-boot" diff --git a/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb b/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb new file mode 100644 index 00000000..9bf25445 --- /dev/null +++ b/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb @@ -0,0 +1,21 @@ +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + +DESCRIPTION = "add target image to rootfs" + + +inherit dpkg-raw + +SRC_URI = "file://deploy-image-wic.sh \ + file://install.override.conf \ + " +DEPENDS = "store-target-image" +DEBIAN_DEPENDS = "store-target-image, bmap-tools, pv, dialog, util-linux, parted, fdisk, gdisk, pigz, xz-utils, pbzip2" +do_install[cleandirs] = "${D}/usr/bin/ \ + ${D}/etc/systemd/system/getty@tty1.service.d/" +do_install() { + install -m 0755 ${WORKDIR}/deploy-image-wic.sh ${D}/usr/bin/deploy-image-wic.sh + install -m 0755 ${WORKDIR}/install.override.conf ${D}/etc/systemd/system/getty@tty1.service.d/override.conf +} diff --git a/meta-isar/recipes-installer/deploy-image/files/deploy-image-wic.sh b/meta-isar/recipes-installer/deploy-image/files/deploy-image-wic.sh new file mode 100644 index 00000000..0d1f4ba8 --- /dev/null +++ b/meta-isar/recipes-installer/deploy-image/files/deploy-image-wic.sh @@ -0,0 +1,83 @@ +#!/bin/bash +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + +DISK_IMAGE=$(find /install -type f -iname "*.wic*" -a -not -iname "*.wic.bmap") +DISK_BMAP=$(find /install -type f -iname "$DISK_IMAGE.bmap") +DISK_IMAGE_SIZE=$(cat /install/*_size) +if [ "$DISK_IMAGE_SIZE" -gt "$(( 4096 * 1024 * 1024 ))" ]; then + echo "IMAGE_SIZE: '$DISK_IMAGE_SIZE' is to big for vfat" +fi + +# inspired by poky/meta/recipes-core/initrdscripts/files/install-efi.sh + +target_device_list="" +current_root_dev=$(grep "[[:blank:]]/[[:blank:]]" /proc/mounts | awk '{print $1}') +current_root_dev=${current_root_dev#\/dev/} +case $current_root_dev in + mmcblk*) + ;; + nvme*) + ;; + *) + current_root_dev=${current_root_dev%%[0-9]*} + ;; +esac + +echo "Searching for target device..." + +devices=$(find /sys/block/ -type b,c,f,l -not -iname "mmcblk*" -printf "%f\n") || true +mmc_devices=$(find /sys/block/ -type b,c,f,l -iname "mmcblk[0-9]" -printf "%f\n") || true +devices="$devices $mmc_devices" + +for device in $devices; do + case $device in + loop*) + # skip loop device + ;; + sr*) + # skip CDROM device + ;; + ram*) + # skip ram device + ;; + *) + case $device in + $current_root_dev*) + # skip the device we are running from + ;; + *) + target_device_list="$target_device_list $device" + ;; + esac + ;; + esac +done + +if [ -z "${target_device_list}" ]; then + dialog --msgbox "You need another device (besides the live device /dev/${current_root_dev}) to install the image. Installation aborted." 7 60 + exit 1 +fi + +oldIFS=${IFS} +IFS="|" +set -- "${target_device_list}" +TARGET_DEVICE=$(echo "${1}" | tr -d " ") +IFS="${oldIFS}" + +set -e +bmap_options="" +if [ -z "$DISK_BMAP" ]; then + bmap_options="--nobmap" +fi +if ! bmaptool copy "${bmap_options}" "$DISK_IMAGE" "/dev/${TARGET_DEVICE}" > /install/bmap.log 2>&1; then + dialog --title "ERROR bmap failed with the following output" --textbox /install/bmap.log 24 140 + exit 1 +fi + +umount /install +sync +dialog --title "Reboot" --msgbox "Installation is successful. System will be rebooted. Please remove the USB stick." 7 60 +reboot diff --git a/meta-isar/recipes-installer/deploy-image/files/install.override.conf b/meta-isar/recipes-installer/deploy-image/files/install.override.conf new file mode 100644 index 00000000..53e9627f --- /dev/null +++ b/meta-isar/recipes-installer/deploy-image/files/install.override.conf @@ -0,0 +1,5 @@ +[Service] +ExecStart= +ExecStart=/bin/sh /usr/bin/deploy-image-wic.sh +StandardInput=tty +StandardOutput=tty diff --git a/meta-isar/recipes-installer/store-target-image/store-target-image_0.1.bb b/meta-isar/recipes-installer/store-target-image/store-target-image_0.1.bb new file mode 100644 index 00000000..feb3c6d7 --- /dev/null +++ b/meta-isar/recipes-installer/store-target-image/store-target-image_0.1.bb @@ -0,0 +1,19 @@ +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + +DESCRIPTION = "Add a given target image to rootfs" + +inherit dpkg-raw + +INSTALLER_TARGET_IMAGE ??= "isar-image-base" +IMG_DATA_FILE ??= "${INSTALLER_TARGET_IMAGE}-${DISTRO}-${MACHINE}" +IMG_DATA_POSTFIX ??= "wic.xz" +do_install[mcdepends] = "mc:installer:installer-target:${INSTALLER_TARGET_IMAGE}:do_image_wic" +do_install[cleandirs] = "${D}/install/" +do_install() { + install -m 0600 ${DEPLOY_DIR_IMAGE}/${IMG_DATA_FILE}.${IMG_DATA_POSTFIX} ${D}/install/ + install -m 0600 ${DEPLOY_DIR_IMAGE}/${IMG_DATA_FILE}.wic.bmap ${D}/install/ + echo $(du -b ${DEPLOY_DIR_IMAGE}/${IMG_DATA_FILE}.${IMG_DATA_POSTFIX} | awk '{print $1}') > ${D}/install/${IMG_DATA_FILE}_size +} 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 new file mode 100644 index 00000000..6ff46176 --- /dev/null +++ b/meta-isar/scripts/lib/wic/canned-wks/installer-efi.wks.in @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + +bootloader --ptable gpt --timeout 3 --append "rootwait console=ttyS0,115200 console=tty0 earlyprintk" +part /boot --source bootimg-efi-isar --sourceparams "loader=systemd-boot" --label efi --part-type EF00 --align 1024 +part / --source rootfs --fstype ext4 --label installroot --align 1024 --use-uuid +part /install --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/install --label INSTALLDATA --fstype=vfat --use-uuid --align 1024