From e266d50d7d0b427b34ed9042a4779027422e594c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 2 Oct 2022 17:29:52 +0200 Subject: make /var/tmp a bind mount point to /tmp --- iso/mkarchiso486 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'iso/mkarchiso486') 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.." -- cgit v1.2.3-70-g09d2