From patchwork Thu Dec 15 14:27:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henning Schild X-Patchwork-Id: 2325 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 15 Dec 2022 15:28:12 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ej1-f63.google.com (mail-ej1-f63.google.com [209.85.218.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 2BFESBsj011762 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Dec 2022 15:28:11 +0100 Received: by mail-ej1-f63.google.com with SMTP id sg39-20020a170907a42700b007c19b10a747sf4518653ejc.11; Thu, 15 Dec 2022 06:28:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671114485; cv=pass; d=google.com; s=arc-20160816; b=gNtzoCwvE3V92Z5Q9tJkfUm5JlPcL034NM/sjyUCZWUU5Ic2EaVEXl8Bd6Ox+8Tm7K p2kAdbKaOSBkbyYLeOTPMlE5h60iShASoNOZujsdCAl0XP/tPN1m9LcXTBEbumER82/B Czp7+zKi8/7VuqBVgMXoWtLnNMvSXjum7vee6olT9KkNV1HDHQb7GeqtPdFVVF/2fY9V 6Hu0GhTMmWE78D0zUo0ZFpWW0Nmkera7DTq9pnrZ11kRl9YXjd3MFVf4nKClLQSkot6G JE9XsYiNr3MJiPkGmp9gT0RWyu3Kwd2Sh+9MRYkxqdcI/RNWvhj4NUEowTOiXw+pVsSN t6Vg== 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:feedback-id:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=wOfzDx0nrt4WPm2QbGpo1jNR9qd6458w7oRdlF3xgPI=; b=CJIVCydmCO4pGaN8QVAj7uGROAkmvy51b8fnDofXtoimObRFL+CGPdtuZLWDxwosHo jkenShC3L/pvsyw+osAie5wWxxkXYOqQvNy9iYEd9k7xv0GyFxP8WuZZjJSq3K1+AzlA DfCfzVVY56MAm4YIgoYfo+vZRoTQtstei+Y8Fn7QdAEuKLBBRfGMdtGR1Pn9IZgQ/zmx ccgCGFCMu7mmpHRD6Tv6M4feNOSwX4RhFRqdHBIvbzIiVA7AJgb9rg2Iueef3raevMW4 yMQQ9WSZWykp4MYPZuoWuCP374qg0P5P9Ea7k0TWpbXKqDkKJysKoA7CPwxlV312XtCF 3E/A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=PStB5zUq; spf=pass (google.com: domain of fm-52304-202212151428044c813e0fff8db64d5f-s05y__@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-52304-202212151428044c813e0fff8db64d5f-s05y__@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:feedback-id:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=wOfzDx0nrt4WPm2QbGpo1jNR9qd6458w7oRdlF3xgPI=; b=XYX/uIzDCdtWHAP0dABQV4Yg5+2iEWu8BA9h362Q34dPrN0AiQcLEgs3ZoD4RpFepr 1TYht8MCK98IdGTjbn1hKYUQoYuZEKBBHlQJ2PmvXpFsy8jIArJ9+PZPEmOxcbQ9reWz r8uALTKnNEF9TaB9DkGa694piOU96hMEKBgoZjqw6OGb8c+U/ydsp6Nl2jG3L/Zv+cyH z3eJXtEaqihvv62no6T7kjYx2v3H32/D83AEBU+CsEw4zLtBIhxVRkvF6Kr0pB2QSo08 w//Hcd2UsfUEHeJth7HLhIIqYGSJ2LeoiQK3X+DP3MmtqFce9bf37SBmZMD+r532/tET r5HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=wOfzDx0nrt4WPm2QbGpo1jNR9qd6458w7oRdlF3xgPI=; b=r1saM2zN+kvaXMVYKJYvj7dWVZJf8NGZ30ykGYpXhXpptkQTcJSTSgrCfQLmr1qMj8 85q8D0tTm0ymuEqn+XANPt9rMkihwaBNDaU8gf00JgUqG0qsrsmHEqhtEQFTqsJ0lFk9 Y4Eda8VZTEXixyJSlYQh5zw0pa4woAgWCT10vsvBHGvYAP0LN2oL8MrB6S7DvnLzhFVj S4Fzwqcx35L2HqbNeAq/99wIMuZCNdVMtRh2kOoFeA47PU+0aJpVCN7Ynist+u+q4P+3 0jlJ0vHQUfgcJg7STiPz/OW8NN+xbXi2TUILpFxYwPI7MnzQaFsBdHtZPwgXk9I/9PJu nWqQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: ANoB5pnmqVjgY9xCe78/Bl9lAX2a3pmHYeKVq57nljIIcQ4U5F+atR2Z oODx8P4igQg7JQzHM1519vA= X-Google-Smtp-Source: AA0mqf5hoFhNRcLyU10N+Z9AngyE1g/6EGtEO/22DaeWEs15stBopW5afZ8CZPRuMd4mX2sP5KdSEg== X-Received: by 2002:aa7:d393:0:b0:470:39d2:24d7 with SMTP id x19-20020aa7d393000000b0047039d224d7mr1458287edq.368.1671114485757; Thu, 15 Dec 2022 06:28:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:5215:b0:43d:b3c4:cd21 with SMTP id s21-20020a056402521500b0043db3c4cd21ls4795460edd.2.-pod-prod-gmail; Thu, 15 Dec 2022 06:28:04 -0800 (PST) X-Received: by 2002:a50:cbcd:0:b0:46a:331:8e72 with SMTP id l13-20020a50cbcd000000b0046a03318e72mr24249938edi.37.1671114484785; Thu, 15 Dec 2022 06:28:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671114484; cv=none; d=google.com; s=arc-20160816; b=fok0ZzpCx9mBvjLICoLwL1EGcoyeGeJ+6MZNo3Qb8W/Tx/G+de21gfG0waC+ehJXP6 MIJIHvE98SmqXGXulRwmJSTvmCG8K9bKxYTtLoDyfNBgXENrU1w2iHkKKvTtfNV+dH1x L8s0Sk6bTymQH9yrfZrnJODb8Y7z/u9nRIrAh04/zF35cgcrEEsmb/n3wscXCFkQYbCf jlItcSXbUjs7PR4GJI/2J6Rsbpvqtc6jR807HLRVVl16Cvv7HFJa6uQNt1u/88QzbnLa VPmIFoeJtf2J93otCAGx4buti5kdWnuIYjBXWHikOrQCf1fkHT3LAIMC35TS+J+P1Yw0 8I7A== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=iPkDTSG3PkWd7fjdxganf9f1h7Bw140bmwMAbADzcXM=; b=JzB1dCtvFjluxFWGoaGxPQ1e76onLz1X0AyqMiz+fnNFUjC2VCAjX8kpknaHw9vm3l gfMeUogPc3mOVfZqW/tSg5L41lOZnDVJ2iE84AzZGX5/FysRN+fpRE5JxltxVx0iKDNF D270fBd7X/yKOFDp5Fwj7FbQzVLq5HxXymzTT509n8rNhBuRD5QSG87jJGUcErBu9srB tziLT+DqBQ7/Ta7SXEza+4K6NeFIn5BaT7QGdE9/X2gzAiOW/niOvvmrD+kwxlZOWzP5 MKqVx5sFudp6ydd6ZSfjuqVLrt0LlDR0a+72WWIX5H0YECQwb1fl0w+gACbzdoJLk2mJ P3rw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=PStB5zUq; spf=pass (google.com: domain of fm-52304-202212151428044c813e0fff8db64d5f-s05y__@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-52304-202212151428044c813e0fff8db64d5f-s05y__@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net. [185.136.64.225]) by gmr-mx.google.com with ESMTPS id ba13-20020a0564021acd00b004704657766csi361090edb.1.2022.12.15.06.28.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Dec 2022 06:28:04 -0800 (PST) Received-SPF: pass (google.com: domain of fm-52304-202212151428044c813e0fff8db64d5f-s05y__@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) client-ip=185.136.64.225; Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 202212151428044c813e0fff8db64d5f for ; Thu, 15 Dec 2022 15:28:04 +0100 From: henning.schild@siemens.com To: isar-users@googlegroups.com Cc: Henning Schild Subject: [PATCH v5 5/6] meta-isar: install expand-on-first-boot in most images and add space Date: Thu, 15 Dec 2022 15:27:58 +0100 Message-Id: <20221215142759.26327-6-henning.schild@siemens.com> In-Reply-To: <20221215142759.26327-1-henning.schild@siemens.com> References: <20221215142759.26327-1-henning.schild@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-52304:519-21489:flowmailer X-Original-Sender: henning.schild@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=PStB5zUq; spf=pass (google.com: domain of fm-52304-202212151428044c813e0fff8db64d5f-s05y__@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-52304-202212151428044c813e0fff8db64d5f-s05y__@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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: Henning Schild Here we take the most common and generic images and add some empty space at the end of then. This will enable better interactive use of our example images since people will have some space to install some more packages. While the space seems fixed it really is open end if the mass storage happens to be bigger, because we install expand-on-first-boot as well. Signed-off-by: Henning Schild --- meta-isar/conf/machine/qemuamd64.conf | 1 + meta-isar/conf/machine/virtualbox.conf | 1 + meta-isar/conf/machine/vmware.conf | 1 + meta-isar/conf/multiconfig/qemuarm-bookworm.conf | 1 + meta-isar/scripts/lib/wic/canned-wks/expand-padding.wks.inc | 5 +++++ meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-btrfs.wks | 2 ++ meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-sd.wks | 2 ++ meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks | 2 ++ 8 files changed, 15 insertions(+) create mode 100644 meta-isar/scripts/lib/wic/canned-wks/expand-padding.wks.inc diff --git a/meta-isar/conf/machine/qemuamd64.conf b/meta-isar/conf/machine/qemuamd64.conf index 6b40cb50702e..a1be5e5b113b 100644 --- a/meta-isar/conf/machine/qemuamd64.conf +++ b/meta-isar/conf/machine/qemuamd64.conf @@ -19,6 +19,7 @@ IMAGER_INSTALL_append_debian-bullseye = " ${SYSTEMD_BOOTLOADER_INSTALL} btrfs-pr IMAGE_PREINSTALL_append_debian-bullseye = " btrfs-progs" IMAGE_INSTALL += "sshd-regen-keys" +IMAGE_INSTALL += "expand-on-first-boot" QEMU_ARCH ?= "x86_64" QEMU_MACHINE ?= "q35" diff --git a/meta-isar/conf/machine/virtualbox.conf b/meta-isar/conf/machine/virtualbox.conf index de3d04c3c4b4..8c3e9bacbf9b 100644 --- a/meta-isar/conf/machine/virtualbox.conf +++ b/meta-isar/conf/machine/virtualbox.conf @@ -10,6 +10,7 @@ KERNEL_NAME ?= "amd64" WKS_FILE ?= "sdimage-efi" IMAGER_INSTALL += "${GRUB_BOOTLOADER_INSTALL}" +IMAGE_INSTALL += "expand-on-first-boot" VMDK_SUBFORMAT = "monolithicSparse" IMAGE_FSTYPES ?= "ova" diff --git a/meta-isar/conf/machine/vmware.conf b/meta-isar/conf/machine/vmware.conf index fba639b19350..42503374742c 100644 --- a/meta-isar/conf/machine/vmware.conf +++ b/meta-isar/conf/machine/vmware.conf @@ -12,6 +12,7 @@ WKS_FILE ?= "sdimage-efi" IMAGER_INSTALL += "${GRUB_BOOTLOADER_INSTALL}" OVF_TEMPLATE_FILE ?= "vm-img-vmware.ovf.tmpl" +IMAGE_INSTALL += "expand-on-first-boot" VMDK_SUBFORMAT = "streamOptimized" IMAGE_FSTYPES ?= "ova" diff --git a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf index 126935b06fda..0b9ecb664545 100644 --- a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf +++ b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf @@ -7,3 +7,4 @@ IMAGE_FSTYPES_append = " wic" WKS_FILE ?= "sdimage-efi-sd" IMAGER_INSTALL += "${SYSTEMD_BOOTLOADER_INSTALL}" +IMAGE_INSTALL += "expand-on-first-boot" diff --git a/meta-isar/scripts/lib/wic/canned-wks/expand-padding.wks.inc b/meta-isar/scripts/lib/wic/canned-wks/expand-padding.wks.inc new file mode 100644 index 000000000000..701fba764176 --- /dev/null +++ b/meta-isar/scripts/lib/wic/canned-wks/expand-padding.wks.inc @@ -0,0 +1,5 @@ +# some extra space we put in the end after the last partition +# that allows testing expand-on-first-boot while at the same time +# making our images more useful because they have space to play around + +part --source empty --no-table --ondisk sda --size 256M diff --git a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-btrfs.wks b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-btrfs.wks index 014ecca61f0c..e22dba2f83f8 100644 --- a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-btrfs.wks +++ b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-btrfs.wks @@ -6,4 +6,6 @@ part /boot --source bootimg-efi-isar --sourceparams "loader=systemd-boot" --ondi part / --source rootfs --ondisk sda --fstype btrfs --label platform --align 1024 --use-uuid --exclude-path boot/ +include expand-padding.wks.inc + bootloader --ptable gpt --timeout 3 --append "rootwait console=ttyS0,115200 console=tty0" diff --git a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-sd.wks b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-sd.wks index 754fbc46f8e4..7fe2953f5ff2 100644 --- a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-sd.wks +++ b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-sd.wks @@ -6,4 +6,6 @@ part /boot --source bootimg-efi-isar --sourceparams "loader=systemd-boot" --ondi part / --source rootfs --ondisk sda --fstype ext4 --mkfs-extraopts "-T default" --label platform --align 1024 --use-uuid --exclude-path boot/ +include expand-padding.wks.inc + bootloader --ptable gpt --timeout 3 --append "rootwait console=ttyS0,115200 console=tty0" diff --git a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks index f3addbc7515d..80c3a5359b1f 100644 --- a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks +++ b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks @@ -6,4 +6,6 @@ part /boot --source bootimg-efi-isar --sourceparams "loader=grub-efi" --ondisk s part / --source rootfs --ondisk sda --fstype ext4 --mkfs-extraopts "-T default" --label platform --align 1024 --use-uuid --exclude-path boot/ +include expand-padding.wks.inc + bootloader --ptable gpt --timeout 3 --append "rootwait console=ttyS0,115200 console=tty0"