machine: change sudo folder access test

The previous "/lost+found" is not available on all systems.  Change to
"/root", which should be available.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-10-19 06:21:18 -04:00
parent f745c2ce17
commit 4954cc74cd
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class Machine:
async def check_sudo_access(self, cmds: List[str] = []) -> bool:
if not cmds:
cmds = ["systemctl --version", "ls /lost+found"]
cmds = ["systemctl --version", "ls /root"]
shell_cmd: SCMDComp = self.server.lookup_component("shell_command")
for cmd in cmds:
try: