mirror of
https://github.com/arthur-pbty/archinstallscript.git
synced 2026-08-01 20:28:08 +02:00
Amélioration de l'installation des paquets : ajout de nouveaux paquets (curl, wget, unzip, rsync, fontconfig, freetype2, harfbuzz, libxkbcommon, pkgconf) et modification de l'installation de paru-bin pour une meilleure fiabilité en chroot.
This commit is contained in:
+11
-6
@@ -95,13 +95,14 @@ mount "$PART_EFI" /mnt/boot
|
|||||||
# 6. Installation du système strict minimum et optimisé
|
# 6. Installation du système strict minimum et optimisé
|
||||||
echo "[INFO] Installation des paquets officiels..."
|
echo "[INFO] Installation des paquets officiels..."
|
||||||
pacstrap /mnt base base-devel linux-zen linux-zen-headers linux-firmware btrfs-progs \
|
pacstrap /mnt base base-devel linux-zen linux-zen-headers linux-firmware btrfs-progs \
|
||||||
networkmanager sudo git neovim \
|
networkmanager sudo git neovim curl wget unzip rsync \
|
||||||
$MICROCODE power-profiles-daemon thermald acpi acpid brightnessctl \
|
$MICROCODE power-profiles-daemon thermald acpi acpid brightnessctl \
|
||||||
pipewire pipewire-pulse pipewire-alsa pipewire-jack wireplumber \
|
pipewire pipewire-pulse pipewire-alsa pipewire-jack wireplumber \
|
||||||
mesa wayland xdg-desktop-portal xdg-desktop-portal-hyprland \
|
mesa wayland xdg-desktop-portal xdg-desktop-portal-hyprland \
|
||||||
hyprland wofi waybar swaybg ttf-jetbrains-mono-nerd kitty \
|
hyprland wofi waybar swaybg ttf-jetbrains-mono-nerd kitty \
|
||||||
bluez bluez-utils thunar playerctl \
|
bluez bluez-utils thunar playerctl \
|
||||||
fastfetch btop htop ncdu yazi lazygit zram-generator
|
fastfetch btop htop ncdu yazi lazygit zram-generator \
|
||||||
|
fontconfig freetype2 harfbuzz libxkbcommon pkgconf
|
||||||
|
|
||||||
# 7. Génération fstab optimisée
|
# 7. Génération fstab optimisée
|
||||||
echo "[INFO] Génération du fstab..."
|
echo "[INFO] Génération du fstab..."
|
||||||
@@ -197,11 +198,15 @@ echo "[INFO] Configuration de sudo sans mot de passe temporaire pour l'installat
|
|||||||
echo "$USERNAME ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/temp
|
echo "$USERNAME ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/temp
|
||||||
chmod 0440 /etc/sudoers.d/temp
|
chmod 0440 /etc/sudoers.d/temp
|
||||||
|
|
||||||
echo "[INFO] Installation de paru-bin..."
|
echo "[INFO] Installation de paru-bin via su - (plus fiable en chroot)..."
|
||||||
sudo -u $USERNAME bash -c "cd /tmp && git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -si --noconfirm" || true
|
su - $USERNAME -c "cd /tmp && git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -si --noconfirm" 2>&1 | tee /tmp/paru_install.log
|
||||||
|
|
||||||
echo "[INFO] Installation de ghostty et bluetui..."
|
if ! command -v paru &> /dev/null; then
|
||||||
sudo -u $USERNAME bash -c "paru -S --noconfirm ghostty-git bluetui" || true
|
echo "[WARNING] paru n'a pas pu être installé. Vérifie le log : /tmp/paru_install.log"
|
||||||
|
else
|
||||||
|
echo "[INFO] Installation de ghostty et bluetui..."
|
||||||
|
su - $USERNAME -c "paru -S --noconfirm ghostty-git bluetui" 2>&1 | tee /tmp/aur_install.log || echo "[WARNING] Erreur pendant l'install de ghostty/bluetui"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[INFO] Restauration de la sécurité sudo..."
|
echo "[INFO] Restauration de la sécurité sudo..."
|
||||||
rm -f /etc/sudoers.d/temp
|
rm -f /etc/sudoers.d/temp
|
||||||
|
|||||||
Reference in New Issue
Block a user