public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: John W <xujiew2015@gmail.com>, isar-users <isar-users@googlegroups.com>
Subject: Re: Create iso image using the wic script in the isar package
Date: Thu, 21 Dec 2023 09:40:27 +0200	[thread overview]
Message-ID: <a76d8dac-d0a9-4e86-bba9-83fe88b96716@ilbers.de> (raw)
In-Reply-To: <579b2dfb-82bd-43a5-ab29-fa6083b299e9n@googlegroups.com>

20/12/2023 19:56, John W wrote:
> 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!

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	other threads:[~2023-12-21  7:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-20 17:56 John W
2023-12-21  7:40 ` Anton Mikanovich [this message]

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=a76d8dac-d0a9-4e86-bba9-83fe88b96716@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    --cc=xujiew2015@gmail.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