#!/bin/sh # shellcheck source=./default.conf . "./default.conf" # builds a small ISO image for installing a stage 4 system: # it uses PXE to boot from a TFTP server (kernel and ramdisk), # then loads the ISO as NBD block device. This is for installation # on old machines with only very limited amount of RAM (currently # requires 64 MB minimal) sudo rm -rf $STAGE4_ISOLINUX # copy chroot to ISOlinux dir mkdir $STAGE4_ISOLINUX sudo cp -a $STAGE4_CHROOT/{bin,boot,dev,etc,home,lib,mnt,opt,proc,root,run,sbin,srv,sys,tmp,usr,var} $STAGE4_ISOLINUX/. sudo chown -R cross:cross $STAGE4_ISOLINUX/. cd $STAGE4_ISOLINUX || exit 1 # on the TFTP server (e. g. as pxelinux.cfg/default) mkdir boot/isolinux cat >boot/isolinux/isolinux.cfg <