Change: Due to the recent DDoS issues the Archlinux infrastructure suffers from lately, the installer now fetches AUR packages from the AUR Git mirrors.

Change: Revised options in the 'sysctl.conf' file (which is used when certain optimizations have been selected).
This commit is contained in:
Jane Doe
2025-10-06 15:41:21 +03:00
parent 435839bd8c
commit 64d692d0ff
+14 -25
View File
@@ -2,7 +2,7 @@
# Amelia Installer # Amelia Installer
# Source: https://gitlab.com/prism7/archery # Source: https://gitlab.com/prism7/archery
# Version: 9.8.3 # Version: 9.8.4
set -euo pipefail set -euo pipefail
################################################################################################### ###################################################################################################
@@ -7023,14 +7023,22 @@ BASE-DEVEL
stage_fail stage_fail
fi fi
fi fi
local stage_prompt="Git Installation"
local stage_prompt="AUR Packages Installation" if [[ "${desktop}" =~ ^(11|12)$ ]]; then
if arch-chroot /mnt <<-AUR-PKGS > "${void}" 2>&1 2> "${log}" ; then if arch-chroot /mnt <<-GIT > "${void}" 2>&1 2> "${log}" ; then
pacman -S --noconfirm git || exit pacman -S --noconfirm git || exit
GIT
stage_ok
else
stage_fail
fi
fi
local stage_prompt="AUR Packages Installation"
if arch-chroot /mnt <<-AURGIT-PKGS > "${void}" 2>&1 2> "${log}" ; then
sed -i 's|if (( EUID == 0 )); then|if (( EUID != 0 )); then|g' /usr/bin/makepkg || exit sed -i 's|if (( EUID == 0 )); then|if (( EUID != 0 )); then|g' /usr/bin/makepkg || exit
git clone https://aur.archlinux.org/${web_aur}.git && cd ${web_aur} && makepkg -s --noconfirm && pacman -U --noconfirm *x86_64.pkg.tar.zst && cd .. && rm -rf ${web_aur} || exit git clone --branch ${web_aur} --single-branch https://github.com/archlinux/aur.git ${web_aur} && cd ${web_aur} && makepkg -s --noconfirm && sudo pacman -U --noconfirm *x86_64.pkg.tar.zst && cd .. && rm -rf ${web_aur} || exit
sed -i 's|if (( EUID != 0 )); then|if (( EUID == 0 )); then|g' /usr/bin/makepkg || exit sed -i 's|if (( EUID != 0 )); then|if (( EUID == 0 )); then|g' /usr/bin/makepkg || exit
AUR-PKGS AURGIT-PKGS
stage_ok stage_ok
else else
stage_fail stage_fail
@@ -7067,35 +7075,16 @@ MKINITCPIO
MAKEPKG MAKEPKG
cat <<-SYSCTL > /etc/sysctl.d/99-sysctld.conf || exit cat <<-SYSCTL > /etc/sysctl.d/99-sysctld.conf || exit
net.core.netdev_max_backlog = 16384 net.core.netdev_max_backlog = 16384
net.core.somaxconn = 8192
net.core.rmem_default = 1048576
net.core.rmem_max = 16777216
net.core.wmem_default = 1048576
net.core.wmem_max = 16777216
net.core.optmem_max = 65536
net.ipv4.tcp_rmem = 4096 1048576 2097152
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.udp_rmem_min = 8192
net.ipv4.udp_wmem_min = 8192
net.ipv4.tcp_fastopen = 3 net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 2000000
net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_slow_start_after_idle = 0 net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.tcp_keepalive_time = 60
net.ipv4.tcp_keepalive_intvl = 10
net.ipv4.tcp_keepalive_probes = 6
net.ipv4.tcp_mtu_probing = 1 net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_sack = 1 net.ipv4.tcp_sack = 1
net.core.default_qdisc = cake net.core.default_qdisc = cake
net.ipv4.tcp_congestion_control = bbr net.ipv4.tcp_congestion_control = bbr
net.ipv4.ip_local_port_range = 30000 65535 net.ipv4.ip_local_port_range = 30000 65535
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
vm.vfs_cache_pressure = 50 vm.vfs_cache_pressure = 50
vm.mmap_min_addr = 65536 vm.mmap_min_addr = 65536
vm.max_map_count = 1048576
kernel.printk = 0 0 0 0 kernel.printk = 0 0 0 0
${perf_stream} ${perf_stream}
SYSCTL SYSCTL