Skip to content
Merged
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
10 changes: 5 additions & 5 deletions src/linux/init/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,16 +845,16 @@ try
}

//
// Run the Plan 9 server. This requires a DrvFs mount for the socket file,
// so either fstab or automount must be enabled to have a chance for the
// mount to be available.
// Run the Plan 9 server. On WSL1 this requires a DrvFs mount for the socket
// file, so either fstab or automount must be enabled to have a chance for
// the mount to be available. WSL2 serves over an hvsocket and has no such
// dependency.
//
// N.B. Failure to start the server is non-fatal.
//

unsigned int Plan9Port = LX_INIT_UTILITY_VM_INVALID_PORT;
if ((WI_IsFlagClear(Config.FeatureFlags.value(), LxInitFeatureDisable9pServer)) && (Config.Plan9Enabled) &&
(Config.AutoMount || Config.MountFsTab))
(UtilIsUtilityVm() || Config.AutoMount || Config.MountFsTab))
{
std::tie(Plan9Port, Config.Plan9ControlChannel) = StartPlan9Server(Plan9SocketPath, Config);
}
Expand Down