Migrate WIC documentation
cover Migrate WIC documentation
Since Yocto 6.0, wic has been made an external tool of the project, and WKS are located in a new files/wic directory in layers. This series aims at migrating the existing documentation with these new changes in mind.
---
Antonin Godard (11):
dev-manual/wic.rst: replace deprecated wks directories ref-manual/classes.rst: replace deprecated wks directory ref-manual/kickstart.rst: replace deprecated wks directory bsp-guide/bsp.rst: fix raspberry layer content example dev-manual/wic.rst: remove note on wic-tools dev-manual/wic.rst: remove bullet point on host requirements dev-manual/wic.rst: add where to set IMAGE_FSTYPES/WKS_FILE[S] from dev-manual/wic.rst: add a requirement to use wic from the build system dev-manual/wic.rst: convert code snippet to code-blocks ref-manual/kickstart.rst: remove note on available commands ref-manual/kickstart.rst: document the include directive
documentation/bsp-guide/bsp.rst | 3 +- documentation/dev-manual/wic.rst | 213 ++++++++++++++++++++++----------- documentation/ref-manual/classes.rst | 3 +- documentation/ref-manual/kickstart.rst | 24 ++-- 4 files changed, 157 insertions(+), 86 deletions(-)
---
base-commit: 47f0f69651280151a52f41fd6b425d55427401e9
change-id: 20260624-wic-migration-a31035a530a1
PATCH 1/11 dev-manual/wic.rst: replace deprecated wks directories
Since Yocto 6.0, wks and wks.in files must be placed under files/wic/ inside a layer. Update the examples to use this path.
--- documentation/dev-manual/wic.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
documentation/dev-manual/wic.rst +7 -7
@@ -276,8 +276,8 @@ existing file provided by the Wic installation. As shipped, kickstart files can be found in the :ref:`overview-manual/development-environment:yocto project source repositories` in the following two locations:: - meta-yocto/meta-yocto-bsp/wic - openembedded-core/scripts/lib/wic/canned-wks + meta-yocto/meta-yocto-bsp/files/wic + openembedded-core/files/wic Use the following command to list the available kickstart files::
@@ -482,7 +482,7 @@ file:: NATIVE_SYSROOT: /home/stephano/yocto/build/tmp-glibc/work/i586-oe-linux/wic-tools/1.0-r0/recipe-sysroot-native INFO: The image(s) were created using OE kickstart file: - /home/stephano/yocto/openembedded-core/scripts/lib/wic/canned-wks/mkefidisk.wks + /home/stephano/yocto/openembedded-core/files/wic/mkefidisk.wks The previous example shows the easiest way to create an image by running in cooked mode and supplying a kickstart file and the "-e" option to
@@ -527,7 +527,7 @@ This next example demonstrates that through modification of the As mentioned earlier, you can use the command ``wic list images`` to show the list of existing kickstart files. The directory in which the ``directdisk-gpt.wks`` file resides is -``scripts/lib/image/canned-wks/``, which is located in +``files/wic``, which is located in :term:`OpenEmbedded-Core (OE-Core)`. Because available files reside in this directory, you can create and add your own custom files to the directory. Subsequent use of the
@@ -542,8 +542,8 @@ The example begins by making a copy of the ``directdisk-gpt.wks`` file in the ``scripts/lib/image/canned-wks`` directory and then by changing the lines that specify the target disk from which to boot:: - $ cp /home/stephano/yocto/openembedded-core/scripts/lib/wic/canned-wks/directdisk-gpt.wks \ - /home/stephano/yocto/openembedded-core/scripts/lib/wic/canned-wks/directdisksdb-gpt.wks + $ cp /home/stephano/yocto/openembedded-core/files/wic/directdisk-gpt.wks \ + /home/stephano/yocto/openembedded-core/files/wic/directdisksdb-gpt.wks Next, the example modifies the ``directdisksdb-gpt.wks`` file and changes all instances of "``--ondisk sda``" to "``--ondisk sdb``". The
@@ -580,7 +580,7 @@ Computing (nuc) :term:`MACHINE` the NATIVE_SYSROOT: /home/stephano/yocto/build/tmp-glibc/work/i586-oe-linux/wic-tools/1.0-r0/recipe-sysroot-native INFO: The image(s) were created using OE kickstart file: - /home/stephano/yocto/openembedded-core/scripts/lib/wic/canned-wks/directdisksdb-gpt.wks + /home/stephano/yocto/openembedded-core/files/wic/directdisksdb-gpt.wks Continuing with the example, you can now directly ``dd`` the image to a USB stick, or whatever media for which you built your image, and boot
Signature · 1 line
2.54.0
PATCH 2/11 ref-manual/classes.rst: replace deprecated wks directory
In reply to Antonin GodardSince Yocto 6.0, wks and wks.in files must be placed under files/wic/ inside a layer. Update the link to the efi-uki-bootdisk.wks.in file.
--- documentation/ref-manual/classes.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
documentation/ref-manual/classes.rst +1 -2
@@ -3534,8 +3534,7 @@ by rootfs image recipes. The build configuration should also use an on target hardware. Using ``systemd`` as init is recommended. Image builds should create an ESP partition for UEFI firmware and copy ``systemd-boot`` and UKI files there. Sample configuration for Wic images is provided in -:oe_git:`scripts/lib/wic/canned-wks/efi-uki-bootdisk.wks.in -</openembedded-core/tree/scripts/lib/wic/canned-wks/efi-uki-bootdisk.wks.in>`. +:oecore_path:`meta/files/wic/efi-uki-bootdisk.wks.in` UKIs are generated using ``systemd`` reference implementation `ukify <https://www.freedesktop.org/software/systemd/man/latest/ukify.html>`__. This class uses a number of variables but tries to find sensible defaults for
Signature · 1 line
2.54.0
PATCH 3/11 ref-manual/kickstart.rst: replace deprecated wks directory
In reply to Antonin GodardSince Yocto 6.0, wks and wks.in files must be placed under files/wic/ inside a layer. Replace the "canned-wks" mention.
--- documentation/ref-manual/kickstart.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/ref-manual/kickstart.rst +1 -1
@@ -230,7 +230,7 @@ supports the following options: - ``--configfile``: Specifies a user-defined configuration file for the bootloader. You can provide a full pathname for the file or a - file located in the ``canned-wks`` folder. This option overrides + file located in the ``files/wic`` folder. This option overrides all other bootloader options. - ``--ptable``: Specifies the partition table format. Valid values are:
Signature · 1 line
2.54.0
PATCH 4/11 bsp-guide/bsp.rst: fix raspberry layer content example
In reply to Antonin GodardThe last two items were on a single line, but should be two lines.
--- documentation/bsp-guide/bsp.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
documentation/bsp-guide/bsp.rst +2 -1
@@ -440,7 +440,8 @@ the :yocto_git:`Source Repositories <>`: meta-raspberrypi/recipes-multimedia/omxplayer/omxplayer_git.bb meta-raspberrypi/recipes-multimedia/x264 meta-raspberrypi/recipes-multimedia/x264/x264_git.bbappend - meta-raspberrypi/wic meta-raspberrypi/wic/sdimage-raspberrypi.wks + meta-raspberrypi/wic + meta-raspberrypi/wic/sdimage-raspberrypi.wks The following sections describe each part of the proposed BSP format.
Signature · 1 line
2.54.0
PATCH 5/11 dev-manual/wic.rst: remove note on wic-tools
In reply to Antonin GodardBuilding this recipe is not required to run the wic command-line tool, so remove this bullet point.
--- documentation/dev-manual/wic.rst | 5 ----- 1 file changed, 5 deletions(-)
documentation/dev-manual/wic.rst +0 -5
@@ -89,11 +89,6 @@ system needs to meet the following requirements: using Wic, the current version of Wic requires the artifacts in the form generated by the OpenEmbedded build system. -- You must build several native tools, which are built to run on the - build system:: - - $ bitbake wic-tools - - Include "wic" as part of the :term:`IMAGE_FSTYPES` variable.
Signature · 1 line
2.54.0
PATCH 6/11 dev-manual/wic.rst: remove bullet point on host requirements
In reply to Antonin GodardUsing wic requires the build directory to be created, which implies a host that meets the usual requirements. Most of our manuals are based on this hypothesis, so no need to add this note here. Instead, simply mention that the environment should be ready for use.
--- documentation/dev-manual/wic.rst | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-)
documentation/dev-manual/wic.rst +3 -10
@@ -71,16 +71,9 @@ Requirements In order to use the Wic utility with the OpenEmbedded Build system, your system needs to meet the following requirements: -- The Linux distribution on your development host must support the - Yocto Project. See the ":ref:`system-requirements-supported-distros`" - section in the Yocto Project Reference Manual for the list of - distributions that support the Yocto Project. - -- The standard system utilities, such as ``cp``, must be installed on - your development host system. - -- You must have sourced the build environment setup script (i.e. - :ref:`structure-core-script`) found in the :term:`Build Directory`. +- You environment and :term:`Build Directory` must be ready, as if you were + going to run ``bitbake`` commands. See :ref:`dev-manual/start:Initializing + the Build Environment` for more details. - You need to have the build artifacts already available, which typically means that you must have already created an image using the
Signature · 1 line
2.54.0
PATCH 7/11 dev-manual/wic.rst: add where to set IMAGE_FSTYPES/WKS_FILE[S] from
In reply to Antonin GodardThis is typically done from a machine configuration file or in the image recipe, mention it here.
--- documentation/dev-manual/wic.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
documentation/dev-manual/wic.rst +4 -3
@@ -82,15 +82,16 @@ system needs to meet the following requirements: using Wic, the current version of Wic requires the artifacts in the form generated by the OpenEmbedded build system. -- Include "wic" as part of the - :term:`IMAGE_FSTYPES` - variable. +- Include "wic" as part of the :term:`IMAGE_FSTYPES` variable (from a + :term:`configuration file` or in the image recipe). - Include the name of the :ref:`wic kickstart file <openembedded-kickstart-wks-reference>` as part of the :term:`WKS_FILE` variable. If multiple candidate files can be provided by different layers, specify all the possible names through the :term:`WKS_FILES` variable instead. + These assignments are typically made in a machine :term:`configuration file`. + Getting Help ============
Signature · 1 line
2.54.0
PATCH 8/11 dev-manual/wic.rst: add a requirement to use wic from the build system
In reply to Antonin GodardSince wic is no longer part of OE-Core since [1], we have to use wic from the build system instead, which can be done by following few steps, finally creating an alias, so that the commands from this document remain valid.
[1]: https://git.openembedded.org/openembedded-core/commit/?id=25ca1cb46dd6d0c57f61f2dc3b649601dc81b50c
--- documentation/dev-manual/wic.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
documentation/dev-manual/wic.rst +23 -0
@@ -75,6 +75,29 @@ system needs to meet the following requirements: going to run ``bitbake`` commands. See :ref:`dev-manual/start:Initializing the Build Environment` for more details. +- Make the ``wic`` command-line tool available in your shell: + + #. Run the following command first: + + .. code-block:: console + + $ bitbake wic-native -c addto_recipe_sysroot + + #. Check if you can use the ``wic`` utility using ``oe-run-native``: + + .. code-block:: console + + $ oe-run-native wic-native wic --help + + #. Define a local alias for the above command: + + .. code-block:: console + + $ alias wic="oe-run-native wic-native wic" + + This will make it possible to use ``wic`` from the :term:`OpenEmbedded + Build System` transparently below. + - You need to have the build artifacts already available, which typically means that you must have already created an image using the OpenEmbedded build system (e.g. ``core-image-minimal``). While it
Signature · 1 line
2.54.0
PATCH 9/11 dev-manual/wic.rst: convert code snippet to code-blocks
In reply to Antonin GodardConvert to current code snippets to use code-block to have proper syntax highlighting, and fix indentation in a few places.
--- documentation/dev-manual/wic.rst | 155 ++++++++++++++++++++++++++------------- 1 file changed, 106 insertions(+), 49 deletions(-)
documentation/dev-manual/wic.rst +106 -49
@@ -120,7 +120,9 @@ Getting Help You can get general help for the ``wic`` command by entering the ``wic`` command by itself or by entering the command with a help argument as -follows:: +follows: + +.. code-block:: console $ wic -h $ wic --help
@@ -128,27 +130,37 @@ follows:: Currently, Wic supports seven commands: ``cp``, ``create``, ``help``, ``list``, ``ls``, ``rm``, and ``write``. You can get help for all these -commands except "help" by using the following form:: +commands except "help" by using the following form: + +.. code-block:: console $ wic help command For example, the following command returns help for the ``write`` -command:: +command: + +.. code-block:: console $ wic help write Wic supports help for three topics: ``overview``, ``plugins``, and -``kickstart``. You can get help for any topic using the following form:: +``kickstart``. You can get help for any topic using the following form: + +.. code-block:: console $ wic help topic -For example, the following returns overview help for Wic:: +For example, the following returns overview help for Wic: + +.. code-block:: console $ wic help overview There is one additional level of help for Wic. You can get help on individual images through the ``list`` command. You can use the ``list`` -command to return the available Wic images as follows:: +command to return the available Wic images as follows: + +.. code-block:: console $ wic list images genericx86 Create an EFI disk image for genericx86*
@@ -169,7 +181,9 @@ command to return the available Wic images as follows:: Once you know the list of available Wic images, you can use ``help`` with the command to get help on a particular image. For example, the following command returns help on the -"beaglebone-yocto" image:: +"beaglebone-yocto" image: + +.. code-block:: console $ wic list beaglebone-yocto help
@@ -205,7 +219,9 @@ In other words, you can point to arbitrary kernel, root filesystem locations, and so forth. Contrast this behavior with cooked mode where Wic looks in the :term:`Build Directory` (e.g. ``tmp/deploy/images/``\ machine). -The general form of the ``wic`` command in raw mode is:: +The general form of the ``wic`` command in raw mode is: + +.. code-block:: console $ wic create wks_file options ...
@@ -263,7 +279,9 @@ a kickstart file and the name of the image from which to use artifacts by using the "-e" option. Wic looks in the :term:`Build Directory` (e.g. ``tmp/deploy/images/``\ machine) for artifacts. -The general form of the ``wic`` command using Cooked Mode is as follows:: +The general form of the ``wic`` command using Cooked Mode is as follows: + +.. code-block:: console $ wic create wks_file -e IMAGE_NAME
@@ -286,12 +304,16 @@ Using an Existing Kickstart File If you do not want to create your own kickstart file, you can use an existing file provided by the Wic installation. As shipped, kickstart files can be found in the :ref:`overview-manual/development-environment:yocto project source repositories` in the -following two locations:: +following two locations: + +.. code-block:: text meta-yocto/meta-yocto-bsp/files/wic openembedded-core/files/wic -Use the following command to list the available kickstart files:: +Use the following command to list the available kickstart files: + +.. code-block:: console $ wic list images genericx86 Create an EFI disk image for genericx86*
@@ -311,13 +333,17 @@ Use the following command to list the available kickstart files:: When you use an existing file, you do not have to use the ``.wks`` extension. Here is an example in Raw -Mode that uses the ``directdisk`` file:: +Mode that uses the ``directdisk`` file: + +.. code-block:: console $ wic create directdisk -r rootfs_dir -b bootimg_dir \ -k kernel_dir -n native_sysroot Here are the actual partition language commands used in the -``genericx86.wks`` file to generate an image:: +``genericx86.wks`` file to generate an image: + +.. code-block:: shell # short-description: Create an EFI disk image for genericx86* # long-description: Creates a partitioned EFI disk image for genericx86* machines
@@ -375,7 +401,9 @@ When the Wic implementation needs to invoke a partition-specific implementation, it looks for the plugin with the same name as the ``--source`` parameter used in the kickstart file given to that partition. For example, if the partition is set up using the following -command in a kickstart file:: +command in a kickstart file: + +.. code-block:: shell part /boot --source bootimg_pcbios --ondisk sda --label boot --active --align 1024
@@ -386,7 +414,9 @@ members of the matching source plugin (i.e. ``bootimg_pcbios``) in the To be more concrete, here is the corresponding plugin definition from the ``bootimg_pcbios.py`` file for the previous command along with an example method called by the Wic implementation when it needs to prepare -a partition using an implementation-specific function:: +a partition using an implementation-specific function: + +.. code-block:: python . .
@@ -477,7 +507,9 @@ Generate an Image using an Existing Kickstart File -------------------------------------------------- This example runs in Cooked Mode and uses the ``mkefidisk`` kickstart -file:: +file: + +.. code-block:: console $ wic create mkefidisk -e core-image-minimal INFO: Building wic-tools...
@@ -513,11 +545,15 @@ and kickstart file information. Continuing with the example, you can now write the image from the :term:`Build Directory` onto a USB stick, or whatever media for which you built your image, and boot from the media. You can write the image by using -``bmaptool`` or ``dd``:: +``bmaptool`` or ``dd``: + +.. code-block:: console $ oe-run-native bmaptool-native bmaptool copy mkefidisk-201804191017-sda.direct /dev/sdX -or :: +or : + +.. code-block:: console $ sudo dd if=mkefidisk-201804191017-sda.direct of=/dev/sdX
@@ -551,8 +587,10 @@ will need to boot from ``sdb`` instead of ``sda``, which is what the ``directdisk-gpt`` kickstart file uses. The example begins by making a copy of the ``directdisk-gpt.wks`` file -in the ``scripts/lib/image/canned-wks`` directory and then by changing -the lines that specify the target disk from which to boot:: +in the ``files/wic`` directory and then by changing +the lines that specify the target disk from which to boot: + +.. code-block:: console $ cp /home/stephano/yocto/openembedded-core/files/wic/directdisk-gpt.wks \ /home/stephano/yocto/openembedded-core/files/wic/directdisksdb-gpt.wks
@@ -560,7 +598,9 @@ the lines that specify the target disk from which to boot:: Next, the example modifies the ``directdisksdb-gpt.wks`` file and changes all instances of "``--ondisk sda``" to "``--ondisk sdb``". The example changes the following two lines and leaves the remaining lines -untouched:: +untouched: + +.. code-block:: shell part /boot --source bootimg_pcbios --ondisk sdb --label boot --active --align 1024 part / --source rootfs --ondisk sdb --fstype=ext4 --label platform --align 1024 --use-uuid
@@ -569,7 +609,9 @@ Once the lines are changed, the example generates the ``directdisksdb-gpt`` image. The command points the process at the ``core-image-minimal`` artifacts for the Next Unit of Computing (nuc) :term:`MACHINE` the -``local.conf``:: +``local.conf``: + +.. code-block:: console $ wic create directdisksdb-gpt -e core-image-minimal INFO: Building wic-tools...
@@ -596,7 +638,9 @@ Computing (nuc) :term:`MACHINE` the Continuing with the example, you can now directly ``dd`` the image to a USB stick, or whatever media for which you built your image, and boot -the resulting media:: +the resulting media: + +.. code-block:: console $ sudo dd if=directdisksdb-gpt-201710090938-sdb.direct of=/dev/sdb 140966+0 records in
@@ -610,7 +654,9 @@ Using a Modified Kickstart File and Running in Raw Mode This next example manually specifies each build artifact (runs in Raw Mode) and uses a modified kickstart file. The example also uses the ``-o`` option to cause Wic to create the output somewhere other than the -default output directory, which is the current directory:: +default output directory, which is the current directory: + +.. code-block:: console $ wic create test.wks -o /home/stephano/testwic \ --rootfs-dir /home/stephano/yocto/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs \
@@ -655,7 +701,9 @@ The following example examines the contents of the Wic image, deletes the existing kernel, and then inserts a new kernel: #. *List the Partitions:* Use the ``wic ls`` command to list all the - partitions in the Wic image:: + partitions in the Wic image: + + .. code-block:: console $ wic ls tmp/deploy/images/qemux86/core-image-minimal-qemux86.wic Num Start End Size Fstype
@@ -671,33 +719,36 @@ the existing kernel, and then inserts a new kernel: .. note:: You can get command usage on any Wic command using the following - form:: + form: - $ wic help command + .. code-block:: console + + $ wic help command For example, the following command shows you the various ways to - use the - wic ls - command:: + use the ``wic ls`` command: + + .. code-block:: console - $ wic help ls + $ wic help ls + The following command shows what is in partition one: - The following command shows what is in partition one:: + .. code-block:: console - $ wic ls tmp/deploy/images/qemux86/core-image-minimal-qemux86.wic:1 - Volume in drive : is boot - Volume Serial Number is E894-1809 - Directory for ::/ + $ wic ls tmp/deploy/images/qemux86/core-image-minimal-qemux86.wic:1 + Volume in drive : is boot + Volume Serial Number is E894-1809 + Directory for ::/ - libcom32 c32 186500 2017-10-09 16:06 - libutil c32 24148 2017-10-09 16:06 - syslinux cfg 220 2017-10-09 16:06 - vesamenu c32 27104 2017-10-09 16:06 - vmlinuz 6904608 2017-10-09 16:06 - 5 files 7 142 580 bytes - 16 582 656 bytes free + libcom32 c32 186500 2017-10-09 16:06 + libutil c32 24148 2017-10-09 16:06 + syslinux cfg 220 2017-10-09 16:06 + vesamenu c32 27104 2017-10-09 16:06 + vmlinuz 6904608 2017-10-09 16:06 + 5 files 7 142 580 bytes + 16 582 656 bytes free The previous output shows five files, with the ``vmlinuz`` being the kernel.
@@ -706,15 +757,19 @@ the existing kernel, and then inserts a new kernel: If you see the following error, you need to update or create a ``~/.mtoolsrc`` file and be sure to have the line "mtools_skip_check=1" - in the file. Then, run the Wic command again:: + in the file. Then, run the Wic command again: - ERROR: _exec_cmd: /usr/bin/mdir -i /tmp/wic-parttfokuwra ::/ returned '1' instead of 0 - output: Total number of sectors (47824) not a multiple of sectors per track (32)! - Add mtools_skip_check=1 to your .mtoolsrc file to skip this test + .. code-block:: text + + ERROR: _exec_cmd: /usr/bin/mdir -i /tmp/wic-parttfokuwra ::/ returned '1' instead of 0 + output: Total number of sectors (47824) not a multiple of sectors per track (32)! + Add mtools_skip_check=1 to your .mtoolsrc file to skip this test #. *Remove the Old Kernel:* Use the ``wic rm`` command to remove the - ``vmlinuz`` file (kernel):: + ``vmlinuz`` file (kernel): + + .. code-block:: console $ wic rm tmp/deploy/images/qemux86/core-image-minimal-qemux86.wic:1/vmlinuz
@@ -726,7 +781,9 @@ the existing kernel, and then inserts a new kernel: kernel will be in the ``workspace/sources`` area. The following example assumes ``devtool`` was used to build the - kernel:: + kernel: + + .. code-block:: console $ wic cp poky_sdk/tmp/work/qemux86-poky-linux/linux-yocto/4.12.12+git999-r0/linux-yocto-4.12.12+git999/arch/x86/boot/bzImage \ build/tmp/deploy/images/qemux86/core-image-minimal-qemux86.wic:1/vmlinuz
Signature · 1 line
2.54.0
PATCH 10/11 ref-manual/kickstart.rst: remove note on available commands
In reply to Antonin GodardThis note makes for a strange introduction to this section. This is a reference manual, so what is documented is also what is supported. Leave the paragraph below as an introduction to this document.
--- documentation/ref-manual/kickstart.rst | 10 ---------- 1 file changed, 10 deletions(-)
documentation/ref-manual/kickstart.rst +0 -10
@@ -9,16 +9,6 @@ OpenEmbedded Kickstart (``.wks``) Reference Introduction ============ -The current Wic implementation supports only the basic kickstart -partitioning commands: ``partition`` (or ``part`` for short) and -``bootloader``. - -.. note:: - - Future updates will implement more commands and options. If you use - anything that is not specifically supported, results can be - unpredictable. - This chapter provides a reference on the available kickstart commands. The information lists the commands, their syntax, and meanings. Kickstart commands are based on the Fedora kickstart versions but with
Signature · 1 line
2.54.0
PATCH 11/11 ref-manual/kickstart.rst: document the include directive
In reply to Antonin GodardIncluding WKS files into others can be useful to avoid duplicating code for similar images. Add documentation for it.
The example was taken from the meta/files/wic/directdisk-bootloader-config.wks file in OE-Core.
--- documentation/ref-manual/kickstart.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)
documentation/ref-manual/kickstart.rst +12 -0
@@ -232,3 +232,15 @@ supports the following options: - ``--timeout``: Specifies the number of seconds before the bootloader times out and boots the default option. +Directive: include +================== + +The ``include`` directive can be used to include a WKS file into another. The +only argument to this command is the path to the file to include, relative to +the current file. For example: + +.. code-block:: shell + + include common.wks.inc + + bootloader --configfile="directdisk-bootloader-config.cfg"
Signature · 1 line
2.54.0
Antonin Godard
AppliedApplied, thanks!
[01/11] dev-manual/wic.rst: replace deprecated wks directories
commit: b981528424e6e33b8f226e81a5d2345fae4dd055
[02/11] ref-manual/classes.rst: replace deprecated wks directory
commit: 70bcb62f02b9b21030b914bc54405ce10d3402b4
[03/11] ref-manual/kickstart.rst: replace deprecated wks directory
commit: b314c7724fd365a19feb9458614d995d14a20910
[04/11] bsp-guide/bsp.rst: fix raspberry layer content example
commit: 2e713eb4777e661348e3e6fd8b2cf00040be4c1a
[05/11] dev-manual/wic.rst: remove note on wic-tools
commit: 92fe43d5bfc561e43ea114773bc2cd5829e4c320
[06/11] dev-manual/wic.rst: remove bullet point on host requirements
commit: ea695e36da61e3aa427d6007436012254527b8a3
[07/11] dev-manual/wic.rst: add where to set IMAGE_FSTYPES/WKS_FILE[S] from
commit: 2c781592db342521201d93c384f9e03594db90d2
[08/11] dev-manual/wic.rst: add a requirement to use wic from the build system
commit: 733993507402a886acc48c383e279be2ec521862
[09/11] dev-manual/wic.rst: convert code snippet to code-blocks
commit: ee085e35789fa706cf302ff26f030e56bb174146
[10/11] ref-manual/kickstart.rst: remove note on available commands
commit: fa821e93abff3d811ce9f9093310b7c139e46eea
[11/11] ref-manual/kickstart.rst: document the include directive
commit: 6553c3c8d85c31ecbd66455657735840fe567ac3