Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-04-06 22:09:25 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-04-06 22:09:25 +0200
commit7e7563260466838d4003f376d38a7bce819dcf7e (patch)
tree7919c2181aa96bdc17704493549609a1d6d56265
parent2b6d5195ee16efc25a25964315acf42ece035b7f (diff)
building more stuff needed for archiso
-rwxr-xr-xbuild_stage4.sh5
-rwxr-xr-xcreate_stage4_cdrom.sh22
2 files changed, 21 insertions, 6 deletions
diff --git a/build_stage4.sh b/build_stage4.sh
index 3353ab7..50231c9 100755
--- a/build_stage4.sh
+++ b/build_stage4.sh
@@ -83,7 +83,10 @@ mkinitcpio-nfs-utils mkinitcpio-nbd atftp
zip nspr gyp
arch-install-scripts
lynx dosfstools gtest zstd btrfs-progs squashfs-tools
-libburn libisofs libisoburn archiso32-git
+libburn libisofs libisoburn
+haveged intel-ucode memtest86+ zsh dhclient
+perl-file-slurp gnu-efi-libs sbsigntools efitools
+archiso32-git
"
# nss still fails as in stage 3
diff --git a/create_stage4_cdrom.sh b/create_stage4_cdrom.sh
index e773c1e..4e599cd 100755
--- a/create_stage4_cdrom.sh
+++ b/create_stage4_cdrom.sh
@@ -3,16 +3,28 @@
# 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)
+# 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)
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