tinkerbell / hook

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

Make deterministic device paths available #152

Closed chrisdoherty4 closed 7 months ago

chrisdoherty4 commented 1 year ago

Hey gang! Another left-field question from me.. I'm working with machines whose BIOSs sometimes switch the bios order of their disks around on reboot. PITA, right? I usually work around this by using /dev/disk/by-path/ to refer to the exact disks I want to target, but this isn't working in tink-node / actions-image2disk, because /dev/disk doesn't exist... (below). Any ideas how I can refer to specific disks without the BIOS messing up the order?

We could definitely benefit from having disks available like this. linuxkit doesn't have support for this by default. It also doesn't have udev. I believe it has mdev though. We will need to figure out how to get this working in Hook.

https://cloud-native.slack.com/archives/C01SRB41GMT/p1669253401496759