From 1a5ffbc01bfbf483f6630976ca5128df47c56c7e Mon Sep 17 00:00:00 2001 From: Nippy Date: Sun, 8 Nov 2026 22:21:58 +0100 Subject: fix --- .../etc/calamares/modules/raveos-letoltes-beallitas.sh | 11 +++++++++++ .../etc/calamares/modules/shellprocess-pacstrap.conf | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh (limited to 'raveos-calamares-theme/etc') diff --git a/raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh b/raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh new file mode 100644 index 0000000..76622eb --- /dev/null +++ b/raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -euo pipefail +CONF="${1:-}/etc/pacman.conf" +[ -f "$CONF" ] || exit 0 +if grep -q "^#\?ParallelDownloads" "$CONF"; then + sed -i "s/^#\?ParallelDownloads.*/ParallelDownloads = 5/" "$CONF" +else + sed -i "/^\[options\]/a ParallelDownloads = 5" "$CONF" +fi +grep -q "^DisableDownloadTimeout" "$CONF" || sed -i "/^\[options\]/a DisableDownloadTimeout" "$CONF" +grep -E "^(ParallelDownloads|DisableDownloadTimeout)" "$CONF" diff --git a/raveos-calamares-theme/etc/calamares/modules/shellprocess-pacstrap.conf b/raveos-calamares-theme/etc/calamares/modules/shellprocess-pacstrap.conf index 0bdfc9c..43afc14 100644 --- a/raveos-calamares-theme/etc/calamares/modules/shellprocess-pacstrap.conf +++ b/raveos-calamares-theme/etc/calamares/modules/shellprocess-pacstrap.conf @@ -6,5 +6,9 @@ script: name: "Initializing package signing keys..." - command: "/etc/calamares/modules/raveos-tukor-rangsor.sh" name: "Selecting the fastest mirrors..." + - command: "/etc/calamares/modules/raveos-letoltes-beallitas.sh" + name: "Configuring package downloads..." - command: "pacstrap ${ROOT} base base-devel btrfs-progs raveos-keyring chaotic-keyring chaotic-mirrorlist linux-cachyos linux-cachyos-headers linux-firmware networkmanager iwd broadcom-wl-dkms wireless-regdb nano vim grub snapper snap-pac rsync efibootmgr bash-completion dkms lsb-release mkinitcpio-openswap" name: "Bootstrapping Arch Linux (Netinstall)..." + - command: "/etc/calamares/modules/raveos-letoltes-beallitas.sh ${ROOT}" + name: "Configuring package downloads on the new system..." -- cgit v1.3