Fix mount instructions
This commit is contained in:
parent
5325e55427
commit
bd6848fdef
30
README.md
30
README.md
|
@ -130,7 +130,7 @@ Now select **Keyboard**.<br />
|
|||
Now select the keyboard layout that you use (not the one that Grandma uses). There will be a lot of typing afterword. I will show you how to change the keyboard layout back afterword.<br />
|
||||
![image of the layout you use](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/the-layout-you-use.png)
|
||||
|
||||
Now select **Network**. You can probably skip this step if you have issues.<br />
|
||||
Now select **Network**.<br />
|
||||
![image of "select Network"](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/select-network.png)
|
||||
|
||||
Select your device, then enter the SSID, and passphrase if required.<br />
|
||||
|
@ -462,14 +462,32 @@ Now select **Exit**.<br />
|
|||
|
||||
Mont the filesystem.
|
||||
```sh
|
||||
for dir in dev proc sys run; do mkdir -p /mnt/$dir; mount --rbind /$dir /mnt/$dir; mount --make-rslave /mnt/$dir; done
|
||||
mkdir -p /mnt/boot
|
||||
mount /dev/<disk name, boot partition number> /mnt/boot
|
||||
mount <root partition> /mnt
|
||||
```
|
||||
Replace **<disk name, boot partition number>**, with the actual disk name, and boot partition number (ie. `/dev/sda1`).
|
||||
Replace **<root partition>** with the root partition (ie. `/dev/sda3`).
|
||||
|
||||
You are going to need to set up the network if you haven't already.
|
||||
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
|
||||
```
|
||||
Update the package manager.
|
||||
```sh
|
||||
xbps-install -u xbps
|
||||
|
|
Loading…
Reference in New Issue