MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / CheckRootFSInstallStatus

Function CheckRootFSInstallStatus

Scripts/InstallFEX.py:309–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307 return _RootFSPath
308
309def CheckRootFSInstallStatus():
310 Distro = GetDistro()[1] # Extract Ubuntu version number, e.g. "23.10"
311
312 DistroUnderscore = Distro.replace(".", "_")
313 Filename = "Ubuntu_{}.ero".format(DistroUnderscore)
314 if os.path.exists(GetRootFSPath() + Filename):
315 return True
316
317 Filename = "Ubuntu_{}.sqsh".format(DistroUnderscore)
318 if os.path.exists(GetRootFSPath() + Filename):
319 return True
320
321 # Couldn't find. Either no rootfs installed or unsupported distro.
322 return False
323
324def TryInstallRootFS():
325 DidInstall = False

Callers 1

mainFunction · 0.85

Calls 3

GetDistroFunction · 0.85
GetRootFSPathFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected