mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 17:47:59 -06:00
wsla: add support for ARM64 (#13762)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
This commit is contained in:
parent
e702db9d5c
commit
4017d23ac9
@ -250,7 +250,9 @@ void WSLAVirtualMachine::Start()
|
|||||||
auto kernelPath = std::filesystem::path(WSL_KERNEL_PATH);
|
auto kernelPath = std::filesystem::path(WSL_KERNEL_PATH);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
auto kernelPath = std::filesystem::path(basePath) / L"tools" / LXSS_VM_MODE_KERNEL_NAME;
|
auto kernelPath = std::filesystem::path(basePath) / L"tools" / LXSS_VM_MODE_KERNEL_NAME;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if constexpr (!wsl::shared::Arm64)
|
if constexpr (!wsl::shared::Arm64)
|
||||||
@ -262,11 +264,9 @@ void WSLAVirtualMachine::Start()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// TODO
|
|
||||||
THROW_HR(E_NOTIMPL);
|
|
||||||
auto bootThis = hcs::UefiBootEntry{};
|
auto bootThis = hcs::UefiBootEntry{};
|
||||||
bootThis.DeviceType = hcs::UefiBootDevice::VmbFs;
|
bootThis.DeviceType = hcs::UefiBootDevice::VmbFs;
|
||||||
// bootThis.VmbFsRootPath = m_rootFsPath.c_str();
|
bootThis.VmbFsRootPath = (basePath / L"tools").c_str();
|
||||||
bootThis.DevicePath = L"\\" LXSS_VM_MODE_KERNEL_NAME;
|
bootThis.DevicePath = L"\\" LXSS_VM_MODE_KERNEL_NAME;
|
||||||
bootThis.OptionalData = kernelCmdLine;
|
bootThis.OptionalData = kernelCmdLine;
|
||||||
hcs::Uefi uefiSettings{};
|
hcs::Uefi uefiSettings{};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user