arch-system/docs/reinstall.md
grayTerminal-sh 14e547ce56 refactor: reorganize Arch system backup and restore
Separate system configuration from Dotfiles_ArchAP.

Add package manifests, system inventories, reusable templates,
safer backup/deployment scripts, on-demand service management,
TLP and zram configuration, and updated maintenance documentation.
2026-07-26 23:25:25 +02:00

67 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Réinstallation complète
## 1. Préparer le disque
Depuis lISO Arch :
```bash
sudo ./scripts/prepare-disk.sh /dev/nvme0n1
```
La commande est destructive et exige une confirmation explicite.
## 2. Installer la base
Exemple :
```bash
pacstrap -K /mnt base linux-lts linux-firmware amd-ucode btrfs-progs networkmanager git sudo neovim
```
Générer ensuite le `fstab` depuis les montages réels :
```bash
genfstab -U /mnt >> /mnt/etc/fstab
```
Ne jamais recopier directement lancien `fstab`.
## 3. Configuration de base
Après `arch-chroot /mnt` :
- fuseau horaire, locale et hostname ;
- utilisateur et sudo ;
- réseau ;
- Limine ;
- initramfs ;
- Secure Boot ;
- Snapper.
## 4. Cloner le dépôt
```bash
git clone https://git.labfytools.com/fy59/arch-system
cd arch-system
```
## 5. Restaurer par étapes
```bash
./scripts/deploy.sh --packages
./scripts/deploy.sh --configs
./scripts/deploy.sh --tools
./scripts/deploy.sh --services
```
## 6. Finaliser manuellement
- adapter `templates/fstab.btrfs` aux nouveaux UUID ;
- adapter `templates/limine.conf` à lUUID Btrfs ;
- lancer `mkinitcpio -P` ;
- installer et configurer Limine ;
- créer la configuration Snapper ;
- lancer limine-snapper-sync ;
- enrôler puis signer avec `sbctl` ;
- restaurer les dotfiles séparément ;
- tester `nftables`, SSH, audio, veille et seuil de batterie avant le premier usage normal.