From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7176574728906211328 X-Received: by 2002:adf:dc85:0:b0:242:2ae7:c0cc with SMTP id r5-20020adfdc85000000b002422ae7c0ccmr23969296wrj.577.1671142574883; Thu, 15 Dec 2022 14:16:14 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:ac7:b0:3cd:d7d0:14b6 with SMTP id c7-20020a05600c0ac700b003cdd7d014b6ls270063wmr.1.-pod-control-gmail; Thu, 15 Dec 2022 14:16:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sh1pdXs/W2eynr97OK/okyic+iyH9EyoPdl/U9ePe9adoxQNnkc7RbJQGV8DL6vsk+fpZ X-Received: by 2002:a05:600c:3184:b0:3cf:7261:f7c4 with SMTP id s4-20020a05600c318400b003cf7261f7c4mr22744078wmp.36.1671142573769; Thu, 15 Dec 2022 14:16:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671142573; cv=none; d=google.com; s=arc-20160816; b=gBiRgYlGklZZBwjTJFso+v8R3CtJCGvz1xK147b5nb1uajC25vV9HgvkTDScbY2VxL QsgJ5Cf7JDtia9jYmQR0p4WiMLfSt/62bxmmq7dxorZBmV4YhGboPda89h10Zoxfkpg2 xQI6ifbmxD7Gc+0+YN2cKjTMmCZ7izR127XJLClCbS/gfCCdgalGIf9Z+7NSZSdXSobt o9wi87AJFIYXfptYFcxNIxO7ZLs8N552J5barUqolQMDIFV469IgtE/zDh/ZZdyn432a Cw9npdhYmsLcwzQb87jREkSYhoixX6Llo1BDdIz4tmRjUsUzuDU5ZQulFcZLq/Pesv0U 2CFA== 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:cc:to:from:dkim-signature; bh=2hr2UhFejmFaCNmW8R5H4TVE/s6kdCsY3hUKjQMe/GM=; b=CLVg94BsTOlHP6u2yy4FI9tO/hI5Hsp6KPLFSzO/33CRPpGtQ8BS8zROnPP6+EELri s3c8nTum+eC3zHLyxXD4/4GRyqCxmVXI7THPwQVBclqPoaxfL7WTBvT4itQHttmOspVB /jCRly7Ax4zKQE/VjPLRgGs8kwVlieca0PSDi1h2W/oaag9IyN9ZZuf2zmFuNswU9KRR xET69Qi+rj6wvJUOFDSWUZRRVKpX2kJOmiZAN2f0MG43uVgtSaW40pqUEzaq7MZAJfeI gtkXAgQcGjdoSdVnPSuYhjMWDDMhTYX1LJS0Bsh2vVQcTK6z1Y9TbemBFkt7Y3J5aTpq cRtA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=E6A+xTLx; spf=pass (google.com: domain of fm-52304-202212152216131bb8b2c9c26826454c-oiueyk@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-52304-202212152216131bb8b2c9c26826454c-OIUEYk@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id m65-20020a1ca344000000b003d1d8d3577dsi541944wme.2.2022.12.15.14.16.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Dec 2022 14:16:13 -0800 (PST) Received-SPF: pass (google.com: domain of fm-52304-202212152216131bb8b2c9c26826454c-oiueyk@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=E6A+xTLx; spf=pass (google.com: domain of fm-52304-202212152216131bb8b2c9c26826454c-oiueyk@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-52304-202212152216131bb8b2c9c26826454c-OIUEYk@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 202212152216131bb8b2c9c26826454c for ; Thu, 15 Dec 2022 23:16:13 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=henning.schild@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=2hr2UhFejmFaCNmW8R5H4TVE/s6kdCsY3hUKjQMe/GM=; b=E6A+xTLxGlj8q4W4tAxpN/v7oSlt8G/CkB5Lj+VEQVGZI5FSjikwwnFUjkntmRED1DilVj abXtk+9Y73Xtkd+miIAdYIr+odbILPNNEfSHhIv1chyaQ5i41H6Vl5abeGexJnDAUTMkXx+C ItvEXDxXiHEM9wEMM8aw/4dyQh4Rw=; From: henning.schild@siemens.com To: isar-users@googlegroups.com Cc: Henning Schild Subject: [PATCH v6 0/6] expand-on-first-boot btrfs and CI testing Date: Thu, 15 Dec 2022 23:16:00 +0100 Message-Id: <20221215221606.5623-1-henning.schild@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-52304:519-21489:flowmailer X-TUID: i81AGk9dd+7q From: Henning Schild changes since v5: - drop dead code around mktemp subshell - revert cosmetic mktemp stuff back to v3 - remove "Suggested-by" tag to hopefully improve signal to noise ratio in review process changes since v4: - cosmetic fix in the way we call mktemp - add a patch that makes sure the service is run only once, also on error - bump package version after changes are done changes since v3: - rebased on "expand-on-first-boot: switch back away from systemd-growfs" - implement btrfs resizing and CI testing it - put the padding wks entry into an include changes since v2: - add python namespace prefix for the bitbake get functions - install only in images that use WKS_FILEs that have the "gap" changes since v1: - complete rewrite to not focus only on the tests but rather the feature for all examples This first was only about testing but meanwhile has a focus on enabling the expand feature in all example images anyhow, and later look for traces of that happening in CI test where we can. We install the application in any image and in the wic images add some scratch space at the end. That will enable improved interactive use of all those wic images, so makes sense apart from any testing. Later use the log reading feature of the qemu tests to look for traces of successful resizing for non ubuntu images. In ubuntu the console_loglevel is not verbose enough to find traces. Henning Schild (6): expand-on-first-boot: really only do that once, especially on failure expand-on-first-boot: support resizing a btrfs meta-isar: introduce an example to use btrfs CI: improve cibuilder readability meta-isar: install expand-on-first-boot in most images and add space CI: expect a message about filesystem resize vom expand script meta-isar/conf/machine/qemuamd64.conf | 6 ++++ meta-isar/conf/machine/virtualbox.conf | 1 + meta-isar/conf/machine/vmware.conf | 1 + .../conf/multiconfig/qemuarm-bookworm.conf | 1 + .../lib/wic/canned-wks/expand-padding.wks.inc | 5 +++ .../lib/wic/canned-wks/sdimage-efi-btrfs.wks | 11 +++++++ .../lib/wic/canned-wks/sdimage-efi-sd.wks | 2 ++ .../lib/wic/canned-wks/sdimage-efi.wks | 2 ++ ...oot_1.3.bb => expand-on-first-boot_1.4.bb} | 0 .../files/expand-last-partition.sh | 31 ++++++++++++++++--- .../files/expand-on-first-boot.service | 1 + testsuite/cibuilder.py | 28 ++++++++++++++--- 12 files changed, 80 insertions(+), 9 deletions(-) create mode 100644 meta-isar/scripts/lib/wic/canned-wks/expand-padding.wks.inc create mode 100644 meta-isar/scripts/lib/wic/canned-wks/sdimage-efi-btrfs.wks rename meta/recipes-support/expand-on-first-boot/{expand-on-first-boot_1.3.bb => expand-on-first-boot_1.4.bb} (100%) -- 2.37.4