From 2b6d5195ee16efc25a25964315acf42ece035b7f Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 6 Apr 2018 13:47:22 +0200 Subject: added archiso32-git for CDROM building --- create_stage4_cdrom.sh | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 create_stage4_cdrom.sh (limited to 'create_stage4_cdrom.sh') diff --git a/create_stage4_cdrom.sh b/create_stage4_cdrom.sh new file mode 100755 index 0000000..e773c1e --- /dev/null +++ b/create_stage4_cdrom.sh @@ -0,0 +1,45 @@ +#!/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 <