From c43841c8272e7c77869269b3fd9a77e8f5710313 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 16 Apr 2026 22:18:30 +0200 Subject: [PATCH] Batch archinstall 4.2 regression --- configs/airootfs/root/.automated_script.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/airootfs/root/.automated_script.sh b/configs/airootfs/root/.automated_script.sh index e2dc0d4..6aa93a7 100644 --- a/configs/airootfs/root/.automated_script.sh +++ b/configs/airootfs/root/.automated_script.sh @@ -80,6 +80,12 @@ install_base_system() { # Ensure that no mounts exist from past install attempts findmnt -R /mnt >/dev/null && umount -R /mnt + # Workaround for archinstall 4.2 regression in sync_log_to_install_medium: + # `self.target / absolute_logfile` drops self.target because the RHS is + # absolute, so Python 3.14 Path.copy() raises EINVAL (source == target). + sed -i 's|logfile_target = self\.target / absolute_logfile$|logfile_target = self.target / absolute_logfile.relative_to("/")|' \ + /usr/lib/python3.14/site-packages/archinstall/lib/installer.py + # Install using files generated by the ./configurator # Skip NTP and WKD sync since we're offline (keyring is pre-populated in ISO) archinstall \