public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Create iso image using the wic script in the isar package
@ 2023-12-20 17:56 John W
  2023-12-21  7:40 ` Anton Mikanovich
  0 siblings, 1 reply; 2+ messages in thread
From: John W @ 2023-12-20 17:56 UTC (permalink / raw)
  To: isar-users


[-- Attachment #1.1: Type: text/plain, Size: 1464 bytes --]

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!

[-- Attachment #1.2: Type: text/html, Size: 1713 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Create iso image using the wic script in the isar package
  2023-12-20 17:56 Create iso image using the wic script in the isar package John W
@ 2023-12-21  7:40 ` Anton Mikanovich
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2023-12-21  7:40 UTC (permalink / raw)
  To: John W, isar-users

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-21  7:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-20 17:56 Create iso image using the wic script in the isar package John W
2023-12-21  7:40 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox