Create iso image using the wic script in the isar package

131 views
Skip to first unread message

John W

unread,
Dec 20, 2023, 1:13:36 PM12/20/23
to isar-users
Hi,

I was able to create a custom image in wic format with isar and now trying to create a bootable iso image. I found the wic script in the isar package and attempted to run with the command:
wic create mkhybridiso -e isar-image-base

However I got the following error:
INFO: Building wic-tools...

Loading cache: 100% |#######################################################################################################################################################| Time: 0:00:00
Loaded 4751 entries from dependency cache.
ERROR: Nothing PROVIDES 'wic-tools'

Summary: There was 1 ERROR message, returning a non-zero exit code.
Traceback (most recent call last):
  File "/home/ubuntu/workspace/isar/scripts/wic", line 547, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/ubuntu/workspace/isar/scripts/wic", line 542, in main
    return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
  File "/home/ubuntu/workspace/isar/scripts/lib/wic/help.py", line 83, in invoke_subcommand
    subcmd[0](args, usage)
  File "/home/ubuntu/workspace/isar/scripts/wic", line 167, in wic_create_subcommand
    subprocess.check_call(["bitbake", "wic-tools"])
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bitbake', 'wic-tools']' returned non-zero exit status 1.

Is there any suggestion on how to resolve this issue?

Thanks!

Anton Mikanovich

unread,
Dec 21, 2023, 2:40:34 AM12/21/23
to John W, isar-users
Hello John,

As you can see in generate_wic_image() task code, Isar supposed to call WIC
script inside special chroot environment. You can take this task as a
reference
to create you own task with additional imager_run call of custom WIC
command.

P.S.
WIC script was brought from OpenEmbedded which really has wic-tools.bb
recipe.
Isar don't have such a recipe, so this fallback is not working.

Reply all
Reply to author
Forward
0 new messages