We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a0763 commit 2027006Copy full SHA for 2027006
ultra.py
@@ -58,6 +58,7 @@ class DiskImage:
58
def __init__(
59
self, fs_root_dir: str, br_type: str,
60
fs_type: str, fs_size_mb: Optional[int] = None,
61
+ hyper_config: Optional[str] = None,
62
hyper_uefi_binary_path: Optional[str] = None,
63
hyper_iso_br_path: Optional[str] = None,
64
hyper_installer_path: Optional[str] = None,
@@ -68,6 +69,10 @@ def __init__(
68
69
self.__fs_type = fs_type.upper()
70
self.__path = out_path if out_path else tempfile.mkstemp()[1]
71
72
+ if hyper_config is not None:
73
+ with open(os.path.join(fs_root_dir, "hyper.cfg"), "w") as f:
74
+ f.write(hyper_config)
75
+
76
is_iso = self.fs_type == "ISO9660"
77
78
if not is_iso:
0 commit comments