From 7ff62c648e093a9420397384a3486e374dad2646 Mon Sep 17 00:00:00 2001 From: Puechberty Arthur Date: Thu, 30 Jul 2026 18:59:58 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20de=20l'installation=20:=20m?= =?UTF-8?q?ise=20=C3=A0=20jour=20de=20la=20keyring=20et=20du=20syst=C3=A8m?= =?UTF-8?q?e=20pour=20=C3=A9viter=20les=20probl=C3=A8mes=20de=20d=C3=A9pen?= =?UTF-8?q?dances,=20cr=C3=A9ation=20d'un=20swapfile=20de=204=20Go,=20et?= =?UTF-8?q?=20ajustement=20de=20la=20compilation=20de=20paru=20pour=20util?= =?UTF-8?q?iser=20le=20support=20swap.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/install.sh b/install.sh index 200ace5..cf50009 100644 --- a/install.sh +++ b/install.sh @@ -101,7 +101,7 @@ pacstrap /mnt base base-devel linux-zen linux-zen-headers linux-firmware btrfs-p mesa wayland xdg-desktop-portal xdg-desktop-portal-hyprland \ hyprland wofi waybar swaybg ttf-jetbrains-mono-nerd kitty \ bluez bluez-utils thunar playerctl \ - fastfetch btop htop ncdu yazi lazygit zram-generator \ + fastfetch btop htop ncdu yazi lazygit \ rust cargo go fontconfig freetype2 harfbuzz libxkbcommon pkgconf # 7. Génération fstab optimisée @@ -114,7 +114,7 @@ cat > /mnt/setup.sh << EOF #!/bin/bash set -e -# Mise à jour de la keyring et du système pour éviter les problèmes de librairies +# Mise à jour de la keyring et du système pour éviter les problèmes de dépendances echo "[INFO] Mise à jour de la keyring et du système..." pacman -Sy --noconfirm archlinux-keyring pacman -Su --noconfirm @@ -182,13 +182,15 @@ systemctl enable thermald systemctl enable acpid systemctl enable bluetooth -# Configuration ZRAM -cat << ZRAMCONF > /etc/systemd/zram-generator.conf -[zram0] -zram-size = ram / 2 -swap-priority = 100 -fs-type = swap -ZRAMCONF +# Configuration SWAP (Fichier d'échange de 4 Go compatible BTRFS) +echo "[INFO] Création d'un swapfile de 4Go pour éviter le Out of Memory..." +truncate -s 0 /swapfile +chattr +C /swapfile +fallocate -l 4G /swapfile +chmod 600 /swapfile +mkswap /swapfile +swapon /swapfile +echo "/swapfile none swap defaults 0 0" >> /etc/fstab # Connexion TTY automatique mkdir -p /etc/systemd/system/getty@tty1.service.d @@ -216,14 +218,14 @@ CombinedUpgrade = true PARUCONF chown -R $USERNAME:$USERNAME /home/$USERNAME/.config/paru -echo "[INFO] Compilation de paru depuis les sources (limité à 1 coeur pour éviter le Out of Memory)..." -sudo -u $USERNAME bash -c "export CARGO_BUILD_JOBS=1; export MAKEFLAGS='-j1'; cd /tmp && git clone https://aur.archlinux.org/paru.git && cd paru && makepkg -si --noconfirm --skippgpcheck" || echo "[WARNING] Paru install failed" +echo "[INFO] Compilation de paru depuis les sources (avec support swap)..." +sudo -u $USERNAME bash -c "cd /tmp && git clone https://aur.archlinux.org/paru.git && cd paru && makepkg -si --noconfirm --skippgpcheck" || echo "[WARNING] Paru install failed" if ! command -v paru &> /dev/null; then echo "[ERROR] paru n'a pas pu être installé." else - echo "[INFO] Installation de ghostty et bluetui (limité à 1 coeur)..." - sudo -u $USERNAME bash -c "export CARGO_BUILD_JOBS=1; export MAKEFLAGS='-j1'; paru -S --noconfirm --skipreview ghostty-git bluetui" || echo "[WARNING] Erreur pendant l'install de ghostty/bluetui" + echo "[INFO] Installation de ghostty et bluetui (avec support swap)..." + sudo -u $USERNAME bash -c "paru -S --noconfirm --skipreview ghostty-git bluetui" || echo "[WARNING] Erreur pendant l'install de ghostty/bluetui" fi echo "[INFO] Restauration de la sécurité sudo..."