fix: increase boot partition and harmonize lvm
All checks were successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-04-11 21:46:50 +02:00
parent 81d697ad98
commit 4c4a92b9c6
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 13 additions and 12 deletions

View File

@ -59,22 +59,22 @@ clearpart --all --initlabel
### Modify partition sizes for the virtual machine hardware. ### Modify partition sizes for the virtual machine hardware.
### Create primary system partitions. ### Create primary system partitions.
part /boot --fstype xfs --size=512 --label=BOOTFS part /boot --fstype xfs --size=1024 --label=BOOTFS
part /boot/efi --fstype vfat --size=512 --label=EFIFS part /boot/efi --fstype vfat --size=512 --label=EFIFS
part pv.01 --size=19 --grow part pv.01 --size=18 --grow
### Create a logical volume management (LVM) group. ### Create a logical volume management (LVM) group.
volgroup vg00 --pesize=4096 pv.01 volgroup vg00 --pesize=4096 pv.01
### Modify logical volume sizes for the virtual machine hardware. ### Modify logical volume sizes for the virtual machine hardware.
### Create logical volumes. ### Create logical volumes.
logvol / --fstype xfs --name=lv_root --vgname=vg00 --size=6000 --label=ROOTFS logvol swap --fstype swap --name=lv_swap --vgname=vg00 --size=2048 --label=SWAPFS
logvol /home --fstype xfs --name=lv_home --vgname=vg00 --size=3000 --label=HOMEFS --fsoptions="nodev" logvol / --fstype xfs --name=lv_root --vgname=vg00 --size=8192 --label=ROOTFS
logvol /opt --fstype xfs --name=lv_opt --vgname=vg00 --size=1000 --label=OPTFS 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 /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=3000 --label=VARFS --fsoptions="nosuid" logvol /var --fstype xfs --name=lv_var --vgname=vg00 --size=2048 --label=VARFS --fsoptions="nosuid"
logvol /var/tmp --fstype xfs --name=lv_vartmp --vgname=vg00 --size=512 --label=LOGFS --fsoptions="nosuid,noexec,nodev" logvol /var/tmp --fstype xfs --name=lv_vartmp --vgname=vg00 --size=512 --label=LOGFS --fsoptions="nosuid,noexec,nodev"
logvol /var/log --fstype xfs --name=lv_log --vgname=vg00 --size=1000 --label=LOGFS --fsoptions="nosuid,noexec,nodev" logvol /var/log --fstype xfs --name=lv_log --vgname=vg00 --size=1024 --label=LOGFS --fsoptions="nosuid,noexec,nodev"
logvol /var/log/audit --fstype xfs --name=lv_audit --vgname=vg00 --size=512 --label=AUDITFS --fsoptions="nosuid,noexec,nodev" logvol /var/log/audit --fstype xfs --name=lv_audit --vgname=vg00 --size=512 --label=AUDITFS --fsoptions="nosuid,noexec,nodev"
### Modifies the default set of services that will run under the default runlevel. ### Modifies the default set of services that will run under the default runlevel.

View File

@ -3,7 +3,7 @@ packer {
required_plugins { required_plugins {
hcloud = { hcloud = {
version = "1.3.0" version = "1.3.0"
source = "github.com/hashicorp/hcloud" source = "github.com/hetznercloud/hcloud"
} }
} }
} }
@ -39,7 +39,8 @@ source "hcloud" "rocky-linux-9" {
// Virtual Machine Settings // Virtual Machine Settings
location = "${var.hcloud_location}" location = "${var.hcloud_location}"
server_type = "${var.hcloud_server_type}" server_type = "cx11"
upgrade_server_type = "${var.hcloud_server_type}"
server_name = "${var.hcloud_server_name}" server_name = "${var.hcloud_server_name}"
// Communicator Settings and Credentials // Communicator Settings and Credentials

View File

@ -26,7 +26,7 @@ variable "hcloud_location" {
variable "hcloud_server_type" { variable "hcloud_server_type" {
type = string type = string
default = "cx11" default = "cx21"
} }
variable "hcloud_server_name" { variable "hcloud_server_name" {