MKKSISO(1)
MKKSISO(1) πΏβ¨
okay bestie, buckle UP, because this is the manual page for mkksiso from Lorax, and it's genuinely iconic. let's get into it π«Ά
NAME
mkksiso β Make Kickstart ISO Utility π
Authors: Brian C. Lane <bcl@redhat.com> π
mkksiso is a tool for creating kickstart boot isos. In it's simplest form you can add a kickstart to a boot.iso and the kickstart will be executed when the iso is booted. If the original iso was created with EFI and Mac support the kickstart boot.iso will include this support as well. β¨
mkksiso The host system architecture needs to match that of the iso. mkksiso will raise an error if it finds a .discinfo on the iso with a mismatched arch. π¨
As of version 38.4mkksisoneeds to be run as root to create a fully bootable iso. Booting on a UEFI system with the iso written to a flash drive requires updating the config files in the embedded efiboot image in the iso. If you do not need this functionality you can still run it as a user by passing--skip-mkefiboot. π (no cap, that's the escape hatch)
MKKSISO CMDLINE ARGUMENTS π οΈ
Add a kickstart and files to an iso π¦
usage: mkksiso [-h] [-a ADD_PATHS] [-c CMDLINE] [-r ARGS] [--debug] [--no-md5sum] [--ks KICKSTART]
[-u IMAGE] [-V VOLID] [-R FROM TO] [--skip-mkefiboot]
[KICKSTART] input_iso output_iso
Positional Arguments π
KICKSTARTβ Optional kickstart to add to the ISO πinput_isoβ ISO to modify πΏoutput_isoβ Full pathname of iso to be created β¨
Named Arguments π·οΈ
-a,--addβ File or directory to add to ISO (may be used multiple times)- Default:
[]
- Default:
-c,--cmdlineβ Arguments to add to kernel cmdline- Default:
""
- Default:
-r,--rm-argsβ Space separated list of arguments to remove from the kernel cmdline- Default:
""
- Default:
--debugβ print debugging info- Default:
20
- Default:
--no-md5sumβ Do not runimplantisomd5on the ouput iso- Default:
True
- Default:
--ksβ Optional kickstart to add to the ISO-u,--updatesβ Optional updates image to add to the ISO-V,--volidβ Set the ISO volume id, defaults to input's-R,--replaceβ Replace string ingrub.cfg. Can be used multiple times--skip-mkefibootβ Skip runningmkefiboot- Default:
False
- Default:
CREATE A KICKSTART BOOT.ISO OR DVD π¬
Create a kickstart like you normally would, kickstart documentation can be found here, including the url and repo commands. If you are creating a DVD and only need the content on the DVD you can use the cdrom command to install without a network connection. Then run mkksiso like this: π«Ά
mkksiso --ks /PATH/TO/KICKSTART /PATH/TO/ISO /PATH/TO/NEW-ISO
This will create a new iso with the kickstart in the root directory, and the kernel cmdline will have inst.ks=... added to it so that it will be executed when the iso is booted (be careful not to boot on a system you don't want to wipe out! There will be no prompting). ππ¨
fr fr, no prompting means NO prompting. main character energy but make it destructive. π
By default the volume id of the iso is preserved. You can set a custom volid by passing -V and the string to set. The kernel cmdline will be changes, and the iso will have th custom volume id. β¨
eg.:
mkksiso -V "Test Only" --ks /PATH/TO/KICKSTART /PATH/TO/ISO /PATH/TO/NEW-ISO
ADDING PACKAGE REPOS TO A BOOT.ISO π¦
You can add repo directories to the iso using --add /PATH/TO/REPO/, make sure it contains the repodata directory by running createrepo_c on it first. In the kickstart you can refer to the directories (and files) on the iso using file:///run/install/repo/DIRECTORY/. You can then use these repos in the kickstart like this: π
repo --name=extra-repo --baseurl=file:///run/install/repo/extra-repo/
Run mkksiso like so:
mkksiso --add /PATH/TO/REPO/ --ks /PATH/TO/KICKSTART /PATH/TO/ISO /PATH/TO/NEW-ISO
CREATE A LIVEIMG BOOT.ISO π
You can use the kickstart liveimg command, to install a pre-generated disk image or tar to the system the iso is booting on. π
Create a disk image or tar with osbuild-composer or livemedia-creator, make sure the image includes tools expected by anaconda, as well as the kernel and bootloader support. In osbuild-composer use the tar image type and make sure to include the kernel, grub2, and grub2-tools packages. If you plan to install it to a UEFI machine make sure to include grub2-efi and efibootmgr in the blueprint. π§
Add the root.tar.xz file to the iso using --add /PATH/TO/ROOT.TAR.XZ, and in the kickstart reference it with the liveimg command like this:
liveimg --url=file:///run/install/repo/root.tar.xz
It is also a good idea to use the --checksum argument to liveimg to be sure the file hasn't been corrupted: π
mkksiso --add /PATH/TO/root.tar.xz --ks /PATH/TO/KICKSTART /PATH/TO/ISO /PATH/TO/NEW-ISO
When this iso is booted it will execute the kickstart and install the liveimg contents to the system without any prompting. β¨
MODIFYING KERNEL CMDLINE ARGUMENTS π§
You can add arguments to the kernel cmdline in the ISO config files by using --cmdline, like this:
mkksiso --cmdline "console=ttyS0,115200n8" /PATH/TO/ISO /PATH/TO/NEW-ISO
Removing arguments ποΈ
mkksiso version 37.3 and later support removing arguments from the cmdline. This can be done with or without adding a kickstart to the iso:
mkksiso --rm "quiet console" /PATH/TO/ISO /PATH/TO/NEW-ISO
will remove the quiet and console arguments from all the the kernel cmdlines on the ISO. π
Changing existing arguments π
With the combination of --rm and --command it is now possible to change existing arguments. For example let's say the ISO has a console=tty3 set on the cmdline. You want to change that to ttyS0 so you run this:
mkksiso --cmdline "console=ttyS0,115200n8" --rm "console" /PATH/TO/ISO /PATH/TO/NEW-ISO
which will first remove all instances of console in the config files, and then add the new console argument. π
HOW IT WORKS βοΈ
mkksiso only depends on xorriso and isomd5sum. It takes advantage of xorriso's ability to extract files, replace files, and add files to the iso without need to mount it. π
mkksiso extracts all of the config files it knows about, and then modifies the boot configuration files to include the inst.ks command. It adds any extra command line arguments you specify, and then builds the new iso with the configuration files replaced, and new files and directories added. π¦
The last step is to update the iso checksums so that booting with test enabled will pass. It uses implantisomd5 from the isomd5sum project. β¨
AUTHOR π«Ά
Weldr Team
COPYRIGHT π
2024, Red Hat, Inc.
and that's the whole thing bestie, no skips, no summaries, we ate and left no crumbs π½οΈπ
this was mkksiso, Lorax manual, version 41.3, dated Aug 12, 2024. periodt. ππΈ
π¦ where this page comes from
- fedora 43: lorax 43.11-3.fc43 Β· GPL-2.0-or-later
- fedora 43: lorax 43.12-1.fc43 Β· GPL-2.0-or-later
- fedora 44: lorax 44.6-1.fc44 Β· GPL-2.0-or-later
- fedora 44: lorax 44.7-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms