attempt LVM?
This commit is contained in:
parent
85466294de
commit
f4ee032de3
@ -1,4 +1,4 @@
|
|||||||
- imagename: output.qcow
|
- imagename: Rocky-9-GenericCloud-Base
|
||||||
elements: [vm, block-device-gpt, rocky-genericcloud]
|
elements: [vm, block-device-gpt, rocky-genericcloud]
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
debug-trace: 1
|
debug-trace: 1
|
8
9-genericcloud-lvm.yaml
Normal file
8
9-genericcloud-lvm.yaml
Normal 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
48
bootloader/lvm.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user