fix: remove swap from lvm (#7)
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/test Pipeline was successful Details

Reviewed-on: #7
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
Robert Kaussow 2024-04-11 23:40:39 +02:00 committed by Robert Kaussow
parent 9b0463929e
commit 71529c48a9
2 changed files with 5 additions and 6 deletions

View File

@ -57,17 +57,16 @@ clearpart --all --initlabel
### Modify partition sizes for the virtual machine hardware.
### Create primary system partitions.
part /boot --fstype xfs --size=1024 --label=BOOTFS
part /boot --fstype xfs --size=2048 --label=BOOTFS
part /boot/efi --fstype vfat --size=512 --label=EFIFS
part pv.01 --size=18 --grow
part pv.01 --size=17 --grow
### Create a logical volume management (LVM) group.
volgroup vg00 --pesize=4096 pv.01
### Modify logical volume sizes for the virtual machine hardware.
### Create logical volumes.
logvol swap --fstype swap --name=lv_swap --vgname=vg00 --size=2048 --label=SWAPFS
logvol / --fstype xfs --name=lv_root --vgname=vg00 --size=8192 --label=ROOTFS
logvol / --fstype xfs --name=lv_root --vgname=vg00 --size=10240 --label=ROOTFS
logvol /home --fstype xfs --name=lv_home --vgname=vg00 --size=2048 --label=HOMEFS
logvol /tmp --fstype xfs --name=lv_tmp --vgname=vg00 --size=512 --label=TMPFS --fsoptions="nosuid,noexec,nodev"
logvol /var --fstype xfs --name=lv_var --vgname=vg00 --size=2048 --label=VARFS --fsoptions="nosuid"

View File

@ -98,7 +98,7 @@ variable "vm_cpu_sockets" {
variable "vm_cpu_cores" {
type = number
description = "The number of virtual CPUs cores per socket."
default = 1
default = 2
}
variable "vm_cpu_type" {
@ -110,7 +110,7 @@ variable "vm_cpu_type" {
variable "vm_mem_size" {
type = number
description = "The size for the virtual memory in MB."
default = 1024
default = 2048
}
variable "vm_disk_size" {