Add chroot insructions

This commit is contained in:
Out Of Ideas 2024-01-27 13:23:06 -06:00
parent bdad9a4427
commit ca3ad6e292

View file

@ -366,13 +366,40 @@ Now initialize the swap parititon.
mkswap <swap partition>
```
Replace **\<swap partition\>** with the name of the root partition (ie. `/dev/sda1`).
### Setting the keybord layout
```sh
sed -i 's/us/dvorak/g' /etc/rc.conf
```
The keymaps are listed in `/usr/share/kbd/keymaps`. If you are using a different keymap, then replace `dvorak` with that keymap. The keymap will be changed back to Gradma's keymap later.
### Mounting filesystems
Mount the filesystem.
```sh
mount <root partition> /mnt
```
Replace **\<root partition\>** with the root partition (ie. `/dev/sda3`).
If you are using UEFI, mount the boot partition.
```sh
mkdir -p /mnt/boot/efi/
mount <boot partiton> /mnt/boot/efi/
```
Replace **\<boot partition\>** with the boot partition (ie. `/dev/sda1`).
Now prepare for `chroot`.
```sh
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sys
mount --rbind /dev /mnt/dev
mount --rbind /run /mnt/run
```
Copy over network files.
```sh
cp /etc/resolv.conf /etc/hosts /mnt/
```
Now `chroot`.
```sh
chroot /mnt /bin/bash
```
## GUI
### Running the installer
Running the installer is simple.