#!/bin/sh # shellcheck source=./default.conf . "./default.conf" # builds a small ISO image for installing a stage 1 system: # no ramdisk, no modules, no fancy startup, just a shell script sudo rm -rf $STAGE1_ISOLINUX # copy chroot to ISOlinux dir mkdir $STAGE1_ISOLINUX sudo cp -a $STAGE1_CHROOT/* $STAGE1_ISOLINUX/. sudo chown -R cross:cross $STAGE1_ISOLINUX/. cd $STAGE1_ISOLINUX || exit 1 # simple ISOlinux menu, with options for fast choosing a root device mkdir boot/isolinux cat >boot/isolinux/isolinux.cfg <etc/init/boot <