index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-04-07 10:23:59 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-04-07 10:23:59 +0200 |
commit | fc2db8469ca6b6061353cae1fd772212b7470ae4 (patch) | |
tree | a02e91d800953235f4560fb09d324ef8a5c0f088 /create_stage4_cdrom.sh | |
parent | 7e7563260466838d4003f376d38a7bce819dcf7e (diff) |
-rwxr-xr-x | create_stage4_cdrom.sh | 22 |
diff --git a/create_stage4_cdrom.sh b/create_stage4_cdrom.sh index 4e599cd..e773c1e 100755 --- a/create_stage4_cdrom.sh +++ b/create_stage4_cdrom.sh @@ -3,28 +3,16 @@ # shellcheck source=./default.conf . "./default.conf" -# build the standard Archlinux 32 ISO with stage 4 packages, Check -# if it works as NBD block device after bootig via (i)PXE and TFTP. -# For machine with little RAM, no CD-ROM drive or just a 1.44MB floppy. -# (requires 64 MB minimal currently) +# 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 - -# TODO: change to ISOLINUX dir - -DOLLAR='\$' -ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -l -c "' - cat >/etc/pacman.d/mirrorlist32 <<EOF -Server = http://archlinux32.andreasbaumann.cc/${DOLLAR}arch/${DOLLAR}repo -EOF -'" - -exit 0 - - 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 |