tinkerbell / actions

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

Don't create, the device should exist #81

Closed swills closed 2 years ago

swills commented 2 years ago

Signed-off-by: Steve Wills steve@mouf.net

Description

Change the flags to os.OpenFile so the path is not created.

Why is this needed

image2disk will create a file in /dev if the device doesn't exist. This is not what is desired.

Fixes: #

How Has This Been Tested?

Tested in my environment

How are existing users impacted? What migration steps/scripts do we need?

Users can think image2disk succeeded in writing the image to disk when in reality it only created a file in /dev/ containing what the disk should contain.

Checklist:

I have: