public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Schaffner, Tobias" <tobias.schaffner@siemens.com>
To: "Schild, Henning" <henning.schild@siemens.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: Uladzimir Bely <ubely@ilbers.de>
Subject: Re: [PATCH v2 3/4] meta-isar: add some empty space at the end of our wic images
Date: Sat, 19 Nov 2022 19:51:21 +0000	[thread overview]
Message-ID: <0cc29c27-6045-c367-f394-7e2991578ee4@siemens.com> (raw)
In-Reply-To: <20221114174053.13258-4-henning.schild@siemens.com>

On 14.11.22 18:40, Henning Schild wrote:
> Add some empty space at the end of our example images. 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
> installed expand-on-first-boot earlier.
> 
> Signed-off-by: Henning Schild <henning.schild@siemens.com>
> ---
>   meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-sd.wks | 2 ++
>   meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks    | 2 ++
>   2 files changed, 4 insertions(+)
> 
> 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..e6b7128eb3ae 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/
>   
> +part --source empty --no-table --ondisk sda --size 256M

It might be a good idea to use some odd value here. Wic only allows you 
to go down to Kibibyte with --fixed-size. Still when using something 
that is not dividable by 4 e.g. ext4 filesystems will not fit perfectly 
into the partition.

Imho we should enlarge the image only for the CI and maybe document how 
to use qemu-img resize for users that want to install additional 
packages. I see that its only an example image and therefore rarely used 
but still it will eat up more space when uncompressed and take longer to 
flash.

Greetings!
> +
>   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..5e555b3cc472 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/
>   
> +part --source empty --no-table --ondisk sda --size 256M
> +
>   bootloader --ptable gpt --timeout 3 --append "rootwait console=ttyS0,115200 console=tty0"

  reply	other threads:[~2022-11-19 19:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-14 17:40 [PATCH v2 0/4] expand-on-first-boot CI testing Henning Schild
2022-11-14 17:40 ` [PATCH v2 1/4] CI: improve cibuilder readability Henning Schild
2022-11-14 17:40 ` [PATCH v2 2/4] meta-isar: install expand-on-first-boot in all example images Henning Schild
2022-11-16 14:34   ` Henning Schild
2022-11-14 17:40 ` [PATCH v2 3/4] meta-isar: add some empty space at the end of our wic images Henning Schild
2022-11-19 19:51   ` Schaffner, Tobias [this message]
2022-11-21  9:37     ` Henning Schild
2022-11-14 17:40 ` [PATCH v2 4/4] CI: expect a message about filesystem resize vom expand script Henning Schild
2022-11-16  7:58   ` Henning Schild

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0cc29c27-6045-c367-f394-7e2991578ee4@siemens.com \
    --to=tobias.schaffner@siemens.com \
    --cc=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=ubely@ilbers.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox