How to make a custom ISO image

From Alpine Linux
Revision as of 11:56, 6 May 2020 by Sb1 (talk | contribs)

The easiest way is to use a script like alpine-make-vm-image.

Live Disk customizations with APKOVL configurations

Once you have booted and customized the system that was booted from an ISO, you may save the state and arrange for the ISO to load the customizations:

  • Generate an APKOVL file with lbu, lbu ci
  • The "diskless" Alpine ISO images look for an APKOVL Volume in mountpoints below /media/, and may alternatively be pointed to a web server.
  • If you put the APKOVL file on a webserver, you need to supply a customized url with the APKOVL boot parameter.

Notes:

  • Any packages you add to /etc/apk/world of your lbu will automatically be installed in the live system.
  • See Alpine_Linux_package_management#Local_Cache about managing included packages.
  • If you don't have a web server you can run busybox's httpd temporarily - busybox httpd -p 127.0.0.1:80
  • See lbu about how to customize it to cover files outside of /etc.
  • If you want to make a customized installer, you need to create .default_boot_services which will cause mkinitfs to create the defaults for the live image.

Testing your ISO image

Qemu is useful for a quick test of ISO image customizations.