From 536096cfb4ebb04f6ba0257c276364ea1262aee2 Mon Sep 17 00:00:00 2001 From: Kevin Cui Date: Thu, 18 Apr 2024 13:46:43 +0800 Subject: [PATCH] feat(ovm): support extends share dir (#55) https://oomol.atlassian.net/browse/OOM-1349 Signed-off-by: Kevin Cui --- src/darwin.ts | 1 + src/type.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/darwin.ts b/src/darwin.ts index b83c804..bb059f3 100644 --- a/src/darwin.ts +++ b/src/darwin.ts @@ -76,6 +76,7 @@ export class DarwinOVM { "-event-socket-path", this.eventSocketPath, "-bind-pid", String(process.pid), `-power-save-mode=${String(this.options.powerSaveMode)}`, + `-extend-share-dir=${this.options.extendShareDir || ""}`, ], { timeout: 0, windowsHide: true, diff --git a/src/type.ts b/src/type.ts index 9433ff5..c2d2443 100644 --- a/src/type.ts +++ b/src/type.ts @@ -14,6 +14,7 @@ export interface OVMDarwinOptions { sshKeyDir: string; versions: OVMDarwinOptions["linuxPath"] & { dataImg: string; }; powerSaveMode: boolean; + extendShareDir?: string, } export enum OVMStatusName {