attempt LVM?

This commit is contained in:
Neil Hanlon 2023-11-21 23:31:25 -05:00
parent 85466294de
commit f4ee032de3
Signed by: neil
GPG key ID: 705BC21EC3C70F34
3 changed files with 57 additions and 1 deletions

View file

@ -1,4 +1,4 @@
- imagename: output.qcow
- imagename: Rocky-9-GenericCloud-Base
elements: [vm, block-device-gpt, rocky-genericcloud]
arch: ppc64le
debug-trace: 1

8
9-genericcloud-lvm.yaml Normal file
View file

@ -0,0 +1,8 @@
- imagename: Rocky-9-GenericCloud-LVM
elements: [vm, block-device-gpt, rocky-genericcloud]
arch: ppc64le
environment:
DIB_ARCHITECTURE: ppc64le
DIB_YUM_DNF_CONTENTDIR: stg/rocky
FS_TYPE: xfs
DIB_BLOCK_DEVICE_CONFIG: file://./bootloader/lvm.conf

48
bootloader/lvm.conf Normal file
View file

@ -0,0 +1,48 @@
- local_loop:
name: image0
- partitioning:
base: image0
label: gpt
partitions:
- name: ESP
type: 'EF00'
size: 550MiB
mkfs:
type: vfat
mount:
mount_point: /boot/efi
fstab:
options: "defaults"
fsck-passno: 2
- name: BSP
type: 'EF02'
size: 8MiB
- name: root
flags: [ boot ]
size: 40G
- lvm:
name: lvm
base: [ root ]
pvs:
- name: pv
base: root
options: [ "--force" ]
vgs:
- name: vg_root
base: [ "pv" ]
options: [ "--force" ]
lvs:
- name: lv_root
base: vg_root
extents: 100%VG
- mkfs:
name: fs_root
base: lv_root
type: xfs
label: "img-rootfs"
mount:
mount_point: /
fstab:
options: "rw,relatime"
fsck-passno: 1