Menu

Modifying install images

Overview

Modifying packages that are part of the install diskless boot (e.g. on install media), or the parameters that can be accepted by the boot process, is a little more involved than modifying individual packages, especially for netboot images. This author discovered that then when working on feat: answerfile kernel cmdline parameter (#26) · Issues · alpine / mkinitfs · GitLab an issue he opened to request / offer to develop an improvement to unattended installation by adding the option of applying a setup-alpine ‘answerfile’ automatically via netboot, by providing a URL to a new answerfile kernel commandline parameter.

The easy part

Challenge #1

Challenge #2 (netboot)

One method of creating the necessary signed repository

Identify all the base packages needed by netboot

Identify all the dependencies of the base packages

Build all required packages

Create required list of package directories in aports
Create a directory for the package repository
mkdir -p ~/packages/main
Add this directory to the system APK repositories
Build the packages
cd ~
for pdir in $(cat ~/packages-to-build.lst); do (cd $pdir && abuild -r -m | tee -a ~/build.log); done

Build a netboot image

From the aports directory:

./scripts/mkimage.sh --profile netboot --repository /home/user/packages/main

Copy to your netboot server and netboot

See Netboot Alpine Linux using iPXE and adjust paths as necessary.