chroot.run_cmd(): add switch_user parameter
This commit is contained in:
parent
2c2e4df638
commit
17669ea8d2
2 changed files with 8 additions and 2 deletions
|
@ -14,6 +14,7 @@ ElevationMethod: TypeAlias = str
|
|||
ELEVATION_METHOD_DEFAULT = "sudo"
|
||||
|
||||
ELEVATION_METHODS: dict[ElevationMethod, list[str]] = {
|
||||
"none": [],
|
||||
"sudo": ['sudo', '--'],
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue