loadkeys fr-bepo
setfont ter-132b
passwd
ssh root@[ip]
mount -m /dev/sdb4 mymount
cd mymount/my_arch_install/desktop
cd mymount/my_arch_install/server
- Une partition de 1G de type EFI System
- Une partition de type Linux filesystem
cfdisk
syntaxe : ./script_install [partition boot] [partition root]
./script_install sda1 sda2
cd
umount mymount
poweroff
Brancher le disque de backup
sudo ./post_install
./post_install_user
#cryptsetup open /dev/[partition root] system
cryptsetup open /dev/sda2 system
mount /dev/mapper/system /mnt
number=N # Le numéro du snapshot
mv -f /mnt/root /mnt/broken_root
btrfs subvol snapshot /mnt/snapshots/$number/snapshot/ /mnt/root
number=N # Le numéro du snapshot
mv -f /mnt/home/adrien /mnt/home/broken_adrien
btrfs subvol snapshot /mnt/home/.snapshots/$number/snapshot /mnt/home
mv /mnt/home/snapshot/adrien /mnt/home/adrien
rm -fr /mnt/home/snapshot
umount /mnt
cryptsetup close system
poweroff
cryptsetup open /dev/$partition_systeme system
mount -t btrfs -o defaults,x-mount.mkdir,compress=zstd,ssd,noatime,subvol=root /dev/mapper/system /mnt
mount -t btrfs -o defaults,x-mount.mkdir,compress=zstd,ssd,noatime,subvol=home /dev/mapper/system /mnt/home
mount -t btrfs -o defaults,x-mount.mkdir,compress=zstd,ssd,noatime,subvol=snapshots /dev/mapper/system /mnt/.snapshots
mount /dev/$partition_boot /mnt/boot
arch-chroot /mnt
umount -R /mnt
cryptsetup close system
mount -t btrfs -o defaults,x-mount.mkdir,compress=zstd,ssd,noatime,subvol=root /dev/sda2 /mnt
mount -t btrfs -o defaults,x-mount.mkdir,compress=zstd,ssd,noatime,subvol=home /dev/sda2 /mnt/home
mount -t btrfs -o defaults,x-mount.mkdir,compress=zstd,ssd,noatime,subvol=snapshots /dev/sda2 /mnt/.snapshots
mount /dev/sda1 --mkdir /mnt/boot
arch-chroot /mnt
umount -R /mnt
poweroff