Add chroot insructions
This commit is contained in:
parent
bdad9a4427
commit
ca3ad6e292
1 changed files with 28 additions and 1 deletions
29
README.md
29
README.md
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue