How to make a custom ISO image: Difference between revisions

From Alpine Linux
(Replace outdated instructions with script alpine-make-vm-image)
mNo edit summary
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
The easiest way is to use script [https://github.com/alpinelinux/alpine-make-vm-image alpine-make-vm-image].


== Live Disk Setup with APKOVL ==
== ISO remastering ==


Once you have customized your custom ISO, you can now setup the live environment to operate outside of the standard installer as follows:
There are scripts to re-build completely custom images, like
* [https://github.com/alpinelinux/alpine-make-vm-image alpine-make-vm-image]
and the original
* [[How_to_make_a_custom_ISO_image_with_mkimage|mkimg]].


* Generate an APKOVL file with [[Alpine_local_backup|lbu]], <code>lbu ci</code>
* Alpine ISO requires the OVL Volume to be hosted on a web server. Put the APKOVL file on a webserver and identify the url.
* Uncomment the <code>APKOVL</code> line in the alpine flavor of your choice and set it to the address of your ovl volume.


Notes:
If you want to make a customized installer, you need to create <code>.default_boot_services</code> which will cause <code>mkinitfs</code> to create the defaults for the live image.


* Any packages you add to /etc/apk/world of your lbu will automatically be installed onto the live system image.
* If you don't have a web server you can run busybox's httpd temporarily - <code>busybox httpd -p 127.0.0.1:80</code>
* In general, <code>lbu</code> will only handle files in <code>/etc</code>, to customize this further, you need to add additional files.
* If you want to make a customized installer, you need to create <code>.default_boot_services</code> which will cause <code>mkinitfs</code> to create the defaults for the live image.


== Testing your ISO image ==
== An alternative ==


[[Qemu#Live_mode| Qemu]] is useful for a quick test of your created ISO image.
It's possible to [[Alpine_local_backup#|commit and load ISO image customizations]] to and from a writable storage.
 
 
 
== Booting an ISO image with local customizations ==
 
* From a dedicated boot media, obviously.
* [[Directly_booting_an_ISO_file]]


[[Category:Package Manager]]
[[Category:Package Manager]]
[[Category:ISO]]
[[Category:ISO]]

Revision as of 20:48, 21 June 2020

ISO remastering

There are scripts to re-build completely custom images, like

and the original


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.


An alternative

It's possible to commit and load ISO image customizations to and from a writable storage.


Booting an ISO image with local customizations