Message ID | CAJGKYO5+xtMLnZKxhZ9oQacBFZUuaG85=-Acb-S+7UewhU1gMw@mail.gmail.com |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | use btrfs instead of ext4 with wic image | expand |
Il giorno mar 20 set 2022 alle ore 17:57 Roberto A. Foglietta < roberto.foglietta@gmail.com> ha scritto: > 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. > This answer the question: add the tools into the wic imager, clean and rebuild diff --git a/recipes-core/images/eval-image-templte.bb b/recipes-core/images/eval-image-templte.bb index 380f9f9..30f689e 100644 --- a/recipes-core/images/eval-image-templte.bb +++ b/recipes-core/images/eval-image-templte.bb @@ -18,3 +18,5 @@ IMAGE_INSTALL += " customizations" IMAGE_INSTALL += " sshd-regen-keys" IMAGE_INSTALL += " expand-on-first-boot" IMAGE_INSTALL += " simatic-lsp-modules-${KERNEL_NAME}" + +WIC_IMAGER_INSTALL += "btrfs-progs" Ciao, R-
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 -- You received this message because you are subscribed to the Google Groups "isar-users" group.