From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7145491809353859072 X-Received: by 2002:a05:620a:781:b0:6ce:8c0:fcea with SMTP id 1-20020a05620a078100b006ce08c0fceamr16849331qka.384.1663689457058; Tue, 20 Sep 2022 08:57:37 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac8:5418:0:b0:35c:b851:7fb4 with SMTP id b24-20020ac85418000000b0035cb8517fb4ls5805095qtq.11.-pod-prod-gmail; Tue, 20 Sep 2022 08:57:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM41JelZSKyOpEVUVggwKPksONbr0/gRrNVgAg88bs2CFhwGarLyQBxmMej/aU/mR1bYiFtw X-Received: by 2002:a05:622a:13d3:b0:35a:6c40:da6d with SMTP id p19-20020a05622a13d300b0035a6c40da6dmr19361532qtk.253.1663689456371; Tue, 20 Sep 2022 08:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663689456; cv=none; d=google.com; s=arc-20160816; b=Yni7z8b0LximMpeIg4wfKRxDIrCrJ2Oq4S0snBNGxs2bhbwgJVmQbhHxpG7rP7KH7M uCzwawwf9t8VoBB4aiEcnVP3z88F9ttvIYdzjUKkJUkmdHTtdEMtbuWIZajLKKHK+W2e gevPa3COPI2NIFv8wYKK2uhPRifh9AZLggZ+C17g0TnS56sm25+zODl2uv2J2dCnOfMY 4/WsWEOIWrY95+UlFh3j6ffDA+e1GI4xB1zeVJoU+fWQ7BjvbVXt9aB5Pm2HOXg9jrgN WJl7uxJjUioabjYMtNvXjinvsGc5VmL7oU1+qDEEV2Ly0tzK62Mot4R3gb2H10+hKXd7 +AIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IWRmtG8h6wOay6HpE7UVebQ6nqnNaznGXY09f0P90ic=; b=au+2Th3gk/Pqa4HYoEw1eUBVz4bNXtjisqKgi/rTp0GzKNROiD6gVzApCJ2aSATa8Y zCQvFlpQ7ZbjjEFPOwWTtfP6sAdPHKNnIj7lxVYL2s41+wtvQxhbhcSCXMZNhjy6hEzq OlMN3bi1lcMDmKDCSQdnzb2mZfnohJQOi3jOUMIaBePJ9cXKCH7FFQZyocBG9hwrhDeh r+4DyDXO0pYmxMKbQIdNLQZacqcEP8XUNHzd3Hd1bKLGjHh7eM+RSpm5OIudgxjwbV72 GZ2lbv1lGPTztjubOUSHzx8H1Gcu9zmugwD30Mxi+dv8pKU+7EFmwdzb4xdBuwMKs+/6 NA1Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O3J3LRaC; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::12d as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com. [2607:f8b0:4864:20::12d]) by gmr-mx.google.com with ESMTPS id z15-20020ac87caf000000b0035baff34f83si3423qtv.3.2022.09.20.08.57.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Sep 2022 08:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::12d as permitted sender) client-ip=2607:f8b0:4864:20::12d; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O3J3LRaC; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::12d as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-il1-x12d.google.com with SMTP id g6so1606553ild.6 for ; Tue, 20 Sep 2022 08:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=IWRmtG8h6wOay6HpE7UVebQ6nqnNaznGXY09f0P90ic=; b=O3J3LRaCeXLB9NJwGl1Tp+uBQWJp+cLppFteMOqohzSZxeDl/as2HsiFXHM/8M8Lnk RdN+A/YEc6ISyBpuIiI4syv2u3F8IgohUMi2tybM+YQih27SBOQrT4Jv2AO16TgK3jZa AMgnx8Dia0h3d0A40GjiiiDfWuRyWrHE0YzPtuVZ0dObz/h4QmOYfFFniU3qKER3i9w4 5Znye9n9egnS84C96r7ebTM8G1f+pp60EhgvP76UawksoM82gwRvwCL2NltMYgg4Jdjk jw4IPj6JSFZ+zzDdjfp5S7sw+qCxoZlggb60XMI2x6kTJTYjHTrqWRbERJwu6TdMlzYM /Anw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=IWRmtG8h6wOay6HpE7UVebQ6nqnNaznGXY09f0P90ic=; b=7WB6NlUKFOACHhGU4kfyzdOwpHt3SNHUP3U8/U+hMD93uK4FrsuXvL+Fmog8PDCTMG YwY0EYxqW8KDisOirjvdti690EG2ZbpK3I4aAXZeVRJ+sA4pFuMUsUS2+jgfOi3VvIKa vyOYgA+B80u9QyiqOvoy1424TEK0S65rMNum10qjrT38nbXUgMebDLDkoy4uGl/8KGgK Rs9cU7JNFsdCKlh/BWYOik30son6uhwtX3lO+/xjNOroHFAumeRvBcl4aopvVZNHDcfa 9jVyoi4rqcQ4BfNDpLTZleVB341bCv0tCdOxTcOj4/jNIYk8R/WqeDUD1/i5wVM36mfO OurQ== X-Gm-Message-State: ACrzQf00M4Z3UGiYY0W8Y69hP7Yko3QICQc4FxQpBpiqZ1PjgEgiocC1 azZsMUmahOovGVhtV2qfxHmUQJNWvBkEiCDccMPAY1Lp6Q== X-Received: by 2002:a92:cdae:0:b0:2f5:8aea:654d with SMTP id g14-20020a92cdae000000b002f58aea654dmr5477580ild.135.1663689455569; Tue, 20 Sep 2022 08:57:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Roberto A. Foglietta" Date: Tue, 20 Sep 2022 17:57:24 +0200 Message-ID: Subject: use btrfs instead of ext4 with wic image To: isar-users@googlegroups.com Content-Type: multipart/alternative; boundary="00000000000004138605e91de3e1" X-TUID: zWydDvYXAR6C --00000000000004138605e91de3e1 Content-Type: text/plain; charset="UTF-8" Dear all, I am trying to use the btrfs instead of exta into wic image as root partition. Just changing the fs type in the wic/image.wkd does not work because it complains that btrfs native tools are missing. The variable DEPENDS in the image recipe does not help even if added. Did someone where used btrfs with wic image? Thanks, R. ERROR: eval-image-1.0-r0 do_image_wic: ExecutionError('/work/build/tmp/work/debian-bullseye-amd64/eval-image-ipc847e/1.0-r0/temp/run.do_image_wic.1603', 1, None, None) ERROR: Logfile of failure stored in: /work/build/tmp/work/debian-bullseye-amd64/eval-image-ipc847e/1.0-r0/temp/log.do_image_wic.1603 Log data follows: | DEBUG: Executing python function set_image_size | DEBUG: Python function set_image_size finished | DEBUG: Executing shell function do_image_wic | INFO: Creating image(s)... | | ERROR: A native program mkfs.btrfs required to build the image was not found (see details above). | | Please make sure wic-tools have btrfs-tools-native in its DEPENDS, build it with 'bitbake wic-tools' and try again. | | | WARNING: exit code 1 from a shell command. | ERROR: ExecutionError('/work/build/tmp/work/debian-bullseye-amd64/eval-image-ipc847e/1.0-r0/temp/run.do_image_wic.1603', 1, None, None) ERROR: Task (/work/build/../../repo/recipes-core/images/eval-image.bb:do_image_wic) failed with exit code '1' NOTE: Tasks Summary: Attempted 92 tasks of which 63 didn't need to be rerun and 1 failed. Summary: 1 task failed: /work/build/../../repo/recipes-core/images/eval-image.bb:do_image_wic Summary: There were 4 WARNING messages shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code. 2022-09-20 15:33:53 - ERROR - Command returned non-zero exit status 1 ipc847e@nvidia:~/isar-ipc-847-e$ cat build/tmp/ipc847e/imgdata/wic-tools.env RECIPE_SYSROOT_NATIVE="/" STAGING_DATADIR="/usr/lib/" STAGING_LIBDIR="/usr/lib/" DEPENDS="btrfs-tools-native" diff --git a/meta/classes/imagetypes_wic.bbclass b/meta/classes/imagetypes_wic.bbclass index 61a74d4..ec9fcbd 100644 --- a/meta/classes/imagetypes_wic.bbclass +++ b/meta/classes/imagetypes_wic.bbclass @@ -127,7 +127,7 @@ python do_rootfs_wicenv () { with open(os.path.join(outdir, "wic-tools.env"), 'w') as envf: for var in ('RECIPE_SYSROOT_NATIVE', 'STAGING_DATADIR', 'STAGING_LIBDIR'): envf.write('{}="{}"\n'.format(var, d.getVar(var, True).strip())) - + envf.write('DEPENDS="btrfs-tools-native"\n') } addtask do_rootfs_wicenv after do_rootfs before do_image_wic diff --git a/wic/ipc847e.wks b/wic/ipc847e.wks index c1ae667..216cc06 100644 --- a/wic/ipc847e.wks +++ b/wic/ipc847e.wks @@ -10,7 +10,7 @@ part --source bootimg-efi-isar --sourceparams "loader=grub-efi" --label efi --part-type EF00 --align 1024 -part / --source rootfs --fstype ext4 --label platform --align 1024 --use-uuid +part / --source rootfs --fstype btrfs --label platform --align 1024 --use-uuid --00000000000004138605e91de3e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear all,

=C2=A0I am trying to use the btrfs instead of exta into wic imag= e as root partition. Just changing the fs type in the wic/image.wkd does no= t work because it complains that btrfs native tools are missing. The variab= le DEPENDS in the image recipe does not help even if added. Did someone whe= re used btrfs with wic image? Thanks, R.

ERROR: eval-image-1.0-r0 do_image_wic: ExecutionError('/work/build/tmp/= work/debian-bullseye-amd64/eval-image-ipc847e/1.0-r0/temp/run.do_image_wic.= 1603', 1, None, None)
ERROR: Logfile of failure stored in: /work/build/tmp/work/debian-bullseye-a= md64/eval-image-ipc847e/1.0-r0/temp/log.do_image_wic.1603
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
|
| ERROR: A native program mkfs.btrfs required to build the image was not fo= und (see details above).
|
| Please make sure wic-tools have btrfs-tools-native in its DEPENDS, build = it with 'bitbake wic-tools' and try again.
|
|
| WARNING: exit code 1 from a shell command.
| ERROR: ExecutionError('/work/build/tmp/work/debian-bullseye-amd64/eva= l-image-ipc847e/1.0-r0/temp/run.do_image_wic.1603', 1, None, None)
ERROR: Task (/work/build/../../repo/recipes-core/images/eval-image.bb:do_im= age_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 92 tasks of which 63 didn't need to be r= erun and 1 failed.

Summary: 1 task failed:
=C2=A0 /work/build/../../repo/recipes-core/images/eval-image.bb:do_image_wi= c
Summary: There were 4 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code. 2022-09-20 15:33:53 - ERROR=C2=A0 =C2=A0 - Command returned non-zero exit s= tatus 1

ipc847e@nvidia:~/isar-ipc-847-e$ cat build/tmp/ipc847e/imgdata/wic-tools.en= v
RECIPE_SYSROOT_NATIVE=3D"/"
STAGING_DATADIR=3D"/usr/lib/"
STAGING_LIBDIR=3D"/usr/lib/"
DEPENDS=3D"btrfs-tools-native"

diff --git a/meta/classes/imagetypes_wic.bbclass b/meta/classes/imagetypes_= wic.bbclass
index 61a74d4..ec9fcbd 100644
--- a/meta/classes/imagetypes_wic.bbclass
+++ b/meta/classes/imagetypes_wic.bbclass
@@ -127,7 +127,7 @@ python do_rootfs_wicenv () {
=C2=A0 =C2=A0 =C2=A0with open(os.path.join(outdir, "wic-tools.env"= ;), 'w') as envf:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0for var in ('RECIPE_SYSROOT_NATIVE= 9;, 'STAGING_DATADIR', 'STAGING_LIBDIR'):
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0envf.write('{}=3D"= {}"\n'.format(var, d.getVar(var, True).strip()))
-
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 envf.write('DEPENDS=3D"btrfs-tools-na= tive"\n')
=C2=A0}

=C2=A0addtask do_rootfs_wicenv after do_rootfs before do_image_wic

diff --git a/wic/ipc847e.wks b/wic/ipc847e.wks
index c1ae667..216cc06 100644
--- a/wic/ipc847e.wks
+++ b/wic/ipc847e.wks
@@ -10,7 +10,7 @@

=C2=A0part --source boo= timg-efi-isar --sourceparams "loader=3Dgrub-efi" --label efi --pa= rt-type EF00 --align 1024

=
-part / --source rootfs --fst= ype ext4 --label platform --align 1024 --use-uuid
+part / --source rootfs --fstype btrfs --label platform= --align 1024 --use-uuid

--00000000000004138605e91de3e1--