Improved naming in LVM
This commit is contained in:
parent
0b10821c88
commit
eacab879ee
2 changed files with 8 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
|||
To install the Void Linux distribution on the system, the encrypted partition and the efi partition have to be mounted to the main system.
|
||||
|
||||
```
|
||||
# mount /dev/mapper/lv0-root /mnt
|
||||
# mount /dev/void/root /mnt
|
||||
# mkdir /mnt/boot
|
||||
# mount /dev/disk/by-label/efi /mnt/boot
|
||||
# for dir in dev proc sys run; do
|
||||
|
@ -113,7 +113,7 @@ The `uuid` is needed again and can be obtained by:
|
|||
Now edit `/boot/loader/void-options.conf` and insert:
|
||||
|
||||
```
|
||||
rw rd.luks.name=<uuid>=root root=/dev/disk/by-label/root quiet splash apparmor=1 security=apparmor loglevel=1 rd.shell=0 rd.emergency=reboot rd.lvm.vg=lv0
|
||||
rw rd.luks.name=<uuid>=root root=/dev/disk/by-label/root quiet splash apparmor=1 security=apparmor loglevel=1 rd.shell=0 rd.emergency=reboot rd.lvm.vg=vg0
|
||||
```
|
||||
|
||||
To obtain a boot menu. A timeout may be added to `/boot/loader/loader.conf`.
|
||||
|
|
|
@ -19,27 +19,27 @@ And the encrypted filesystem of the root partition.
|
|||
|
||||
```
|
||||
# cryptsetup luksFormat /dev/<disk2> --type luks2 --label luks
|
||||
# cryptsetup open --type luks /dev/<disk2> lv0
|
||||
# cryptsetup open --type luks /dev/<disk2> vg0
|
||||
```
|
||||
|
||||
Now to create a new LVM volume group:
|
||||
|
||||
```
|
||||
# vgcreate lv0 /dev/mapper/lv0
|
||||
# vgcreate void /dev/mapper/vg0
|
||||
```
|
||||
|
||||
To create partitions inside the volume group:
|
||||
|
||||
```
|
||||
# lvcreate --name root -L 64G lv0
|
||||
# lvcreate --name home -l 100%FREE lv0
|
||||
# lvcreate --name root -L 64G void
|
||||
# lvcreate --name home -l 100%FREE void
|
||||
```
|
||||
|
||||
To create the filesystems on the logical partitions:
|
||||
|
||||
```
|
||||
# mkfs.ext4 -L root /dev/mapper/lv0-root
|
||||
# mkfs.ext4 -L home /dev/mapper/lv0-home
|
||||
# mkfs.ext4 -L root /dev/void/root
|
||||
# mkfs.ext4 -L home /dev/void/home
|
||||
```
|
||||
|
||||
Other filesystems can also be used but `ext4` is the standard for most linux distrobutions. Other sizes for the partitions can also be used depending on the needs of the user.
|
||||
|
|
Loading…
Reference in a new issue