Commit graph

15 commits

Author SHA1 Message Date
InsanePrawn
5c8f0acfcd exec: run_cmd() include cwd in debug log 2022-11-09 20:19:04 +01:00
InsanePrawn
a9edbfd07d exec/file: document symlink() and check return code 2022-11-09 20:11:19 +01:00
InsanePrawn
606a7a9af3 exec: makedir() accept Union[str, int] for user and group 2022-11-09 19:39:59 +01:00
InsanePrawn
17669ea8d2 chroot.run_cmd(): add switch_user parameter 2022-11-09 19:39:59 +01:00
InsanePrawn
2c2e4df638 exec/cmd: generate_cmd_{su,elevated}: tolerate flat string as input for cmd instead of list 2022-11-09 19:39:59 +01:00
InsanePrawn
b622a2ab02 exec.file.write_file(): fix situation where file exists but stat fails due to permissions 2022-11-09 19:39:59 +01:00
InsanePrawn
0924ea298a exec/file: add get_temp_dir() (for tempdirs without sticky bits) and chmod() 2022-08-17 00:50:20 +02:00
InsanePrawn
4ed0b8626b add exec.file.symlink() and use in BuildChroot 2022-08-16 03:39:29 +02:00
InsanePrawn
818b354000 exec/file.py: add {root_,}makedir() 2022-08-16 02:35:40 +02:00
InsanePrawn
2535d6bbd8 exec/cmd.run_cmd(): add stderr param 2022-08-16 02:35:40 +02:00
InsanePrawn
cc29b60f9f use exec.file.{root_write_file,remove_file} where appropiate 2022-08-16 02:35:40 +02:00
InsanePrawn
ceedf4bced file.chown() add recursive=False parameter 2022-08-15 23:31:57 +02:00
InsanePrawn
107ca5d86e exec/file.py: add new module to write to files as root via cmd.run_root_cmd() 2022-08-15 23:12:59 +02:00
InsanePrawn
f3a1a510d9 exec/cmd.py: add tests (needs configured sudo) 2022-08-15 23:07:44 +02:00
InsanePrawn
879fd113f0 exec: migrate exec.py to exec/cmd.py 2022-08-15 17:48:42 +02:00