From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
To: isar-users@googlegroups.com
Subject: use btrfs instead of ext4 with wic image
Date: Tue, 20 Sep 2022 17:57:24 +0200 [thread overview]
Message-ID: <CAJGKYO5+xtMLnZKxhZ9oQacBFZUuaG85=-Acb-S+7UewhU1gMw@mail.gmail.com> (raw)
In-Reply-To: <AM0PR10MB2020227BF960831D861511F8AA4C9@AM0PR10MB2020.EURPRD10.PROD.OUTLOOK.COM>
[-- Attachment #1: Type: text/plain, Size: 2929 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 3959 bytes --]
next parent reply other threads:[~2022-09-20 15:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AM0PR10MB2020227BF960831D861511F8AA4C9@AM0PR10MB2020.EURPRD10.PROD.OUTLOOK.COM>
2022-09-20 15:57 ` Roberto A. Foglietta [this message]
2022-09-21 4:11 ` Roberto A. Foglietta
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='CAJGKYO5+xtMLnZKxhZ9oQacBFZUuaG85=-Acb-S+7UewhU1gMw@mail.gmail.com' \
--to=roberto.foglietta@gmail.com \
--cc=isar-users@googlegroups.com \
/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