bhyveload: If disk cannot be opened RW try RO. (=same as bhyve)

Not expecting it to turn into yak-shaving: kevans
This commit is contained in:
Poul-Henning Kamp
2026-02-17 18:36:04 +00:00
parent d7d0369ad3
commit 0f2b7181ea
+2
View File
@@ -722,6 +722,8 @@ disk_open(char *path)
return (ERANGE);
fd = open(path, O_RDWR);
if (fd < 0)
fd = open(path, O_RDONLY);
if (fd < 0)
return (errno);