Commit graph

509 commits

Author SHA1 Message Date
InsanePrawn
916be09c61 distro/repo.py: add Repo.__repr__() 2022-08-16 03:40:28 +02:00
InsanePrawn
4ed0b8626b add exec.file.symlink() and use in BuildChroot 2022-08-16 03:39:29 +02:00
InsanePrawn
859b08df6a packages.build_enable_qemu(): fixup for usage without wrapper, drop buildchroot requirement 2022-08-16 03:38:33 +02:00
InsanePrawn
dd7e1716b8 image.py: cleanups, run umount as root 2022-08-16 02:35:40 +02:00
InsanePrawn
dbf65b44df parse_pkgbuild(): update basepkg version before copying to subpkgs 2022-08-16 02:35:40 +02:00
InsanePrawn
25ea4afe9b chroot/: make devicechroot pacstrap work without docker wrapper 2022-08-16 02:35:40 +02:00
InsanePrawn
707c61f026 replace os.makedirs with exec.{root_,}makedir where applicable 2022-08-16 02:35:40 +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
9d24065258 ssh.py: fixups, use correct mode for .ssh dir 2022-08-16 00:09:23 +02:00
InsanePrawn
ceedf4bced file.chown() add recursive=False parameter 2022-08-15 23:31:57 +02:00
InsanePrawn
774b526925 config.py: silence new click mypy error 2022-08-15 23:12:59 +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
4eacee8cad utils: add get_{user,group}_name() and get_{uid,gid}() 2022-08-15 23:12:59 +02:00
InsanePrawn
98b835c75a .gitlab-ci.yml: add pytest */test_*.py 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
InsanePrawn
72ca2258d1 exec.py: add elevation_noop() to refresh sudo timestamp and query for password 2022-08-15 17:48:42 +02:00
InsanePrawn
c562271006 image.py: use exec.run_root_cmd() 2022-08-15 17:48:42 +02:00
InsanePrawn
40600855ec flash.py: use exec.run_root_cmd() 2022-08-15 17:48:42 +02:00
InsanePrawn
b32099c4f1 binfmt.py: use exec.run_root_cmd() 2022-08-15 06:42:19 +02:00
InsanePrawn
fdf03e2b97 packages: migrate to exec.run_(root_)cmd() 2022-08-15 06:41:59 +02:00
InsanePrawn
6593471a8e chroot/*: use exec.run_(root_)cmd 2022-08-15 06:32:43 +02:00
InsanePrawn
0465d1035a forwarding.py and ssh.py: use exec.run_(root_)cmd() 2022-08-15 06:20:56 +02:00
InsanePrawn
7fcd68ced9 packages.discover_packages(): don't use chroot for running makepkg --printsrcinfo, pass config, cache results 2022-08-15 06:17:26 +02:00
InsanePrawn
a6129a82bd format.sh: allow selecting file paths 2022-08-15 06:17:26 +02:00
InsanePrawn
de71a71c13 config.py: remove class members that should be instance members from ConfigStateHolder 2022-08-15 06:17:26 +02:00
InsanePrawn
0d4d83f0ed logger.setup_logging(): add log_setup parameter to disable log output from setup 2022-08-15 06:17:26 +02:00
InsanePrawn
66ac56d715 chroot: extract run_cmd() to new exec.py, use in utils.py and chroot/abstract.py 2022-08-15 06:17:26 +02:00
InsanePrawn
e3ad2edc69 packages/__init__.py: cleanups, mostly logging 2022-08-14 04:17:46 +02:00
InsanePrawn
d70805f3a6 pkgbuild.py: add pkgbuild.arches parsing, add SubPkgbuild class 2022-08-14 04:14:47 +02:00
InsanePrawn
cac5ac2ad0 config: cmd_config_*: make yes the new default for "save?", give users the chance to retry 2022-08-14 01:31:41 +02:00
InsanePrawn
2d71b1f3cc package.setup_build_chroot(): demote "Initializing build chroot" message to debug 2022-08-13 19:48:16 +02:00
InsanePrawn
572638ece9 image.cmd_inspect(): don't require a profile name 2022-08-13 01:39:27 +02:00
InsanePrawn
bffd60f71a docs/config: add description of work paths to File Location, improve profile config example 2022-08-12 15:54:09 +02:00
InsanePrawn
8e8713a9d3 packages.filter_packages_by_path(): also accept plain package names, rename function 2022-08-11 07:53:09 +02:00
InsanePrawn
7a074d1c11 packages: fix up cmd_sideload(), use get_kupfer_local() to find packages. 2022-08-11 07:53:09 +02:00
InsanePrawn
bb3a7d4881 wrapper/docker: create .ssh dir with correct perms (700) 2022-08-11 07:24:48 +02:00
InsanePrawn
068009185c ssh.py: add alloc_tty parameter to run_ssh_command(), add logging 2022-08-11 07:24:48 +02:00
InsanePrawn
bd5415de47 distro/package.parse_desc: add filename to resolved_url 2022-08-11 07:24:48 +02:00
InsanePrawn
ec1e5fa300 distro.py: cache get_kupfer_{local,https}() results 2022-08-11 07:24:48 +02:00
InsanePrawn
1a58b136e3 distro: add Distro.{scan,is_scanned}() 2022-08-11 07:24:48 +02:00
InsanePrawn
bcf7450235 image.install_rootfs(): write /etc/hostname 2022-08-11 07:24:48 +02:00
InsanePrawn
fe6fd7dfb5 config: introduce pacman.check_space, use it in chroot.write_pacman_conf() 2022-08-10 15:28:17 +02:00
InsanePrawn
97c1bd1f74 {image,packages}.cmd_build(): document the HTTPS download behaviour
and minor cleanups for cli params
2022-08-10 01:38:45 +02:00
InsanePrawn
5003225409 distro: clean up merging dicts in distro.get_packages() 2022-08-10 01:38:45 +02:00
InsanePrawn
85b4463da4 repo.py: remove unnecessary config import 2022-08-10 01:38:45 +02:00
InsanePrawn
5f3e43a922 image.py: autoformat cmd_build() parameter decorators 2022-08-10 01:05:49 +02:00
InsanePrawn
d8e754cdd9 image.cmd_build(): add --no-download-pkgs; clean up other params 2022-08-09 00:10:58 +02:00