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>2022-10-02 17:29:52 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-10-02 17:29:52 +0200
commite266d50d7d0b427b34ed9042a4779027422e594c (patch)
treefd5dec1b6bf509ced21c3499d2be68155d89638e
parenteb132d7838edde848733efd99f5a870fa7419e4d (diff)
make /var/tmp a bind mount point to /tmp
-rwxr-xr-xiso/mkarchiso4865
1 files changed, 4 insertions, 1 deletions
diff --git a/iso/mkarchiso486 b/iso/mkarchiso486
index e93af06..4b56ca6 100755
--- a/iso/mkarchiso486
+++ b/iso/mkarchiso486
@@ -15,11 +15,11 @@ if test ! -d "$ROOTMNT"; then
mkdir "$ROOTMNT"
fi
-# get and patch mirrorlist for Archlinux32
if test ! -d "$ROOTFS"; then
mkdir "$ROOTFS"
fi
+echo "Fetch and patch mirrorlist for Archlinux32.."
if test ! -f "$BASE/mirrorlist32"; then
wget -O "$BASE/mirrorlist32" "https://www.archlinux32.org/mirrorlist/?country=all&protocol=http&protocol=https&ip_version=4&ip_version=6"
sed -i '/https.*mirror.archlinux32.org/s/#Server/Server/' "$BASE/mirrorlist32"
@@ -47,6 +47,9 @@ sed -i 's/^Architecture.*=.*/Architecture = i486/' "$ROOTFS/etc/pacman.conf"
sed -i 's/^#\(Server.*=.*https:\/\/.*mirror\.archlinux32.org.*\)/\1/' "$ROOTFS/etc/pacman.d/mirrorlist"
sed -i 's|.*ParallelDownloads.*|ParallelDownloads = 1|' "$ROOTFS/etc/pacman.conf"
+# /var/tmp should be writeable
+echo "/tmp /var/tmp none bind 0 0" >> "$ROOTFS/etc/fstab"
+
mount --bind "$ROOTFS" "$ROOTMNT"
echo "Preparing keyring inside chroot.."