Custom Script Integration
Kuiper allows you to run additional scripts during the build process to customize the resulting image. This feature enables advanced customization beyond the standard configuration options.
Using the Example Script
To use the provided example script:
In the
config
file, set theEXTRA_SCRIPT
variable to:EXTRA_SCRIPT=stages/07.extra-tweaks/01.extra-scripts/examples/extra-script-example.sh
If you need to pass
config
file parameters to the script, uncomment the line where it sources the config file in the example script.Add your custom commands to the example script file.
Using Your Own Custom Script
To use your own custom script:
Place your script file inside the
adi-kuiper-gen/stages
directory.In the
config
file, set theEXTRA_SCRIPT
variable to the path of your script relative to theadi-kuiper-gen
directory.Make sure your script is executable (
chmod +x your-script.sh
).
Custom scripts are executed in the chroot environment of the target system during the build process, allowing you to install additional packages, modify system files, or perform any other customization.