Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

QemuRunner.py: Allow OS image paths with spaces #247

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Platforms/QemuQ35Pkg/Plugins/QemuRunner/QemuRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def Runner(env):
if env.GetValue("PATH_TO_OS") is not None:
# Potentially dealing with big daddy, give it more juice...
args += " -m 8192"
args += " -hda " + env.GetValue("PATH_TO_OS")
args += " -hda \"" + env.GetValue("PATH_TO_OS") + "\""
else:
args += " -m 2048"
args += " -cpu qemu64,+rdrand,umip,+smep" # most compatible x64 CPU model + RDRAND + UMIP + SMEP support (not included by default)
Expand Down
2 changes: 1 addition & 1 deletion Platforms/QemuSbsaPkg/Plugins/QemuRunner/QemuRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def Runner(env):
args = "-net none"
# Mount disk with either startup.nsh or OS image
if env.GetValue("PATH_TO_OS") is not None:
args += " -hda " + env.GetValue("PATH_TO_OS")
args += " -hda \"" + env.GetValue("PATH_TO_OS") + "\""
elif os.path.isfile(VirtualDrive):
args += f" -hdd {VirtualDrive}"
elif os.path.isdir(VirtualDrive):
Expand Down