Commit ffd6065
committed
bringup_guestfs: fix CUSTOM_INDEX realpath
Ensure $CUSTOM_IMAGE_DIR directory exists before running realpath.
Otherwise, realpath returns with an error when used on a file located in
a non-existent directory.
Example:
realpath /tmp/testing
/tmp/testing
realpath /tmp/testing/file
realpath: /tmp/testing/file: No such file or directory
mkdir -p /tmp/testing
realpath /tmp/testing/file
/tmp/testing/file
Fixes 5649a0d ("bringup: Use full path when creating custom_source
file")
Signed-off-by: Daniel Gomez <[email protected]>1 parent 12e311b commit ffd6065
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | 114 | | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
| |||
0 commit comments