()
| 307 | return _RootFSPath |
| 308 | |
| 309 | def 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 | |
| 324 | def TryInstallRootFS(): |
| 325 | DidInstall = False |
no test coverage detected