tinkerbell / hook

In-memory Operating System Installation Environment for Executing Tinkerbell Workflows
Apache License 2.0
102 stars 49 forks source link

how to recoginze the lvm on my disk #143

Closed sheepcat closed 1 year ago

sheepcat commented 1 year ago

Hi guys i build a system use linuxkit it cannot recognize the lvm (lv vg pv) on my disk , what else services should i install ?

here is my yaml

kernel: image: quay.io/tinkerbell/hook-kernel:5.10.85-5604bb0dc1cdb6263770a82bf91cbf7e00ffdd5c cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"

init:

onboot:

services:

files:

trust: org:


with great appreciated

jacobweinstock commented 1 year ago

Hey @sheepcat, hmmm...you might try running a container (mount in /dev) on Hook that either has lvm installed or can install lvm and then try that way.

ehanks-habana commented 1 year ago

I was able to get hook to recognize LVM devices by building a container with the packages (lvm2 lvm2-libs device-mapper) and configuring it as an init container in hook.yaml.