tinkerbell / actions

Suite of Tinkerbell Actions for use in Tinkerbell Workflows
Apache License 2.0
28 stars 43 forks source link

add the ability to create lvm in the partition command #101

Closed walkerus closed 8 months ago

walkerus commented 1 year ago

Description

Adding the ability to create LVM in the partition command by adding the volume_groups object to the metadata

Why is this needed

36

Fixes: #

How Has This Been Tested?

I tested the changes on Dell PowerEdge R650 and Lenovo ThinkSystem SR630 V2 servers with the standard hook kernel. I ran the action rootio with the partition command and added lvm-related data to the metadata. After creating the logical volumes, I initialized the file systems on them using the rootio format command. Changes do not affect the current code if you do not add lvm-related parameters to the metadata.

To start using the changes, just add an optional array describing volume groups to the metadata

Checklist:

I have: