guix-configs/excellon/reinstall_steps.txt

61 lines
1.4 KiB
Text

install guix on excellon
new root drive re-install
1. partition drive:
/dev/sda1 - 1G - EFI System
/dev/sda2 - 16G - Linux Swap
/dev/sda3 - * - Linux Filesystem
2. format the partitions
mkfs.fat -F 32 /dev/sda1
mkswap /dev/sda2 -L swap
mkfs.ext4 -L root /dev/sda3
mount /dev/sda3 /mnt
mkdir -p /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
swapon /dev/sda2
3. decrypt and mount doc and data
Note: make sure the alias "doc1" matches the UUID in mapped-devices of system.scm
blkid |grep cf6ba # doc1 uuid to /dev/sdX mapping
blkid |grep 05f83 # doc2 uuid to /dev/sdX mapping
cryptsetup luksOpen /dev/sde doc1
cryptsetup luksOpen /dev/sdc doc2
mkdir -p /mnt/docs
mount /dev/mapper/doc1 /mnt/docs
mkdir -p /mnt/data
mount -L datapool /mnt/data
4. copy system and channels scm files
mkdir /usb1
mount /dev/sdg1 /usb1
mkdir -p /mnt/home/batronx7/.config/guix
cp /usb1/* /mnt/home/batronx7/.config/guix
5. Make sure the right bootload is setup
(bootloader (bootloader-configuration
(bootloader grub-efi-bootloader)
(targets (list "/boot/efi"))
(keyboard-layout keyboard-layout)))
and that /boot/is efi mounted as vfat
(file-system
(mount-point "/boot/efi")
(device (uuid "63B5-42FC" 'fat32))
(type "vfat"))
6. initialize the system
herd start cow-store /mnt
guix pull
guix system init /mnt/home/bartronx7/.config/guix/system.scm /mnt
7. reboot and check BIOS
make sure that UEFI GUIX is set in the boot order