The general form of the 'wic' command in raw mode is:
$ wic create <image_name>.wks -r <rootfs_dir> -b <bootimg_dir> / -k <kernel_dir> -n <native_sysroot>
wic
.
In fact, you should not run as root when using the
utility.
Following is a description of the wic
parameters and options:
<image_name>.wks
:
An OpenEmbedded kickstart file.
You can provide your own custom file or use a
file from a set of provided files as described
following this list.
-r <rootfs_dir>
:
Specifies the path to the root filesystem directory
to be used and the .wks
root filesystem source.
-b <bootimg_dir>
:
Specifies the path to the directory that contains
the boot artifacts (e.g. the
EFI
or
syslinux
directories) to use
as the .wks
boot image source.
-k <kernel_dir>
:
Specifies the path to the dir containing the kernel
to use in the .wks
boot
image.
-n <native_sysroot>
:
Specifies the path to the native sysroot
that contains the tools used to build the image.