InsanePrawn
|
d6900172fe
|
exec/cmd: run_cmd(): add new params: stdin, stdin_input, check asddsadsa
|
2023-09-13 18:14:30 +02:00 |
|
InsanePrawn
|
829d80ede0
|
chroot/abstract: add switch_user param to chroot.run_cmd()'s signature
|
2023-09-13 18:14:30 +02:00 |
|
InsanePrawn
|
8437613e6e
|
image/image: move CLI methods to image/cli.py
|
2023-09-13 18:14:30 +02:00 |
|
InsanePrawn
|
cc1b4b3ee2
|
packages/build: redirect output from stderr to stdout
|
2023-03-17 16:34:20 +01:00 |
|
InsanePrawn
|
a8e8ddc4b4
|
typecheck: add --check-untyped-defs and fix some associated type errors
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
82a87e7ea9
|
implement explicit Optional type hints for =None parameters
Thanks https://github.com/hauntsaninja/no_implicit_optional
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
71e33ab8e1
|
chroot/abstract: remove leftover print statement
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
50bcd0de63
|
image: create new module from {image,boot,fastboot,flash}.py
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
d1267d4082
|
chroot/cli: import get_profile_device() properly now that import loop is fixed
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
33f4a81981
|
config: move code from __init__.py into cli.py
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
ed4226a505
|
chroot: add empty __init__.py
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
6569fee6a2
|
chroot: move __init__.py to cli.py
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
9fbb2dec46
|
chroot: remove initialize=False arg from Chroot()
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
746e42a4f6
|
chroot: clean up the copy_base instance var mess
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
8a31a98946
|
chroots: clean up get_*chroot() function signatures
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
07a8c3c79a
|
chroot/abstract: clean up
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
f705e39ca1
|
chroot.mount_{ccache,rust}: use config.get_path() to resolve %cache_dir%
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
ad966d6616
|
chroot.cmd_chroot(): call image.cmd_inspect() for type='rootfs' and clean up
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
1d0a97560b
|
chroot.mount_pacman_cache(): use /var/cache/pacman/pkg to avoid problems while pacstrapping, adjust pacman.conf generator
|
2022-11-09 20:19:04 +01:00 |
|
InsanePrawn
|
bf420a73be
|
distro: refactor BinaryPackage, Repo and Distro into generics for Local and Remote
|
2022-11-09 20:11:19 +01:00 |
|
InsanePrawn
|
6cce302dcc
|
chroot: add chroot.get_uid(user: str), use in chroot.mount_{ccache,rust} to apply correct ownership
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
a3ec35bcd6
|
config: introduce rust cache
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
47e74fb415
|
config: introduce per-arch persisted ccache dir
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
c0fd1f51b5
|
chroot: add chroot.mount_chroots() to mount /chroot and use in cmd_chroot()
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
b6239a45ce
|
chroot.create_user(): add primary_group parameter
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
1cac36b73a
|
chroot: add chroot.add_sudo_config()
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
5329f7a5b0
|
chroot.create_user(): add optional uid and non_unique parameter
|
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
|
8ad18c00a6
|
global: refactor to use config.{file,runtime}.$member instead of config.file["$member"]
|
2022-11-09 19:39:59 +01:00 |
|
InsanePrawn
|
3952892029
|
generator.generate_pacman_conf_body(): add in_chroot=False param to use config.get_path('pacman') if necessary
|
2022-08-23 21:41:41 +02:00 |
|
InsanePrawn
|
4e4e12b6b9
|
chroot.run_cmd(): don't blindly import outer env into chroot, avoiding a bunch of spam.
|
2022-08-17 00:50:20 +02:00 |
|
InsanePrawn
|
5eda60c14d
|
chroot/device.py: Use exec.file.get_temp_dir() for pacman.conf
|
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
|
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
|
cc29b60f9f
|
use exec.file.{root_write_file,remove_file} where appropiate
|
2022-08-16 02:35:40 +02:00 |
|
InsanePrawn
|
879fd113f0
|
exec: migrate exec.py to exec/cmd.py
|
2022-08-15 17:48:42 +02:00 |
|
InsanePrawn
|
6593471a8e
|
chroot/*: use exec.run_(root_)cmd
|
2022-08-15 06:32:43 +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
|
fe6fd7dfb5
|
config: introduce pacman.check_space, use it in chroot.write_pacman_conf()
|
2022-08-10 15:28:17 +02:00 |
|
InsanePrawn
|
a746e938cd
|
Chroot.deactivate(ignore_rootfs=True): also ignore /boot
|
2022-05-07 13:34:14 +02:00 |
|
InsanePrawn
|
6917347219
|
chroot: fix rsync --exclude (use CHROOT_PATHS.values instead of implict keys())
|
2022-05-06 05:27:08 +02:00 |
|
InsanePrawn
|
3874b4e626
|
chroot: cleanups, initialize(): unmount everything except / before create_rootfs()
|
2022-05-06 04:07:41 +02:00 |
|
InsanePrawn
|
686c94c3ad
|
chroot: exclude all CHROOT_PATHS from rsync, keep leading slashes
|
2022-05-05 21:22:53 +02:00 |
|
InsanePrawn
|
560b5bcd45
|
chroot: fix accidental static Chroot members, add uuid
|
2022-05-05 20:43:03 +02:00 |
|
InsanePrawn
|
9ff6f24489
|
chroot/: fix class vars vs instance vars
looking at you, Chroot.active_mounts = []
|
2022-03-03 16:54:43 +01:00 |
|
InsanePrawn
|
0c38fabf11
|
format: clean up leftovers
|
2022-02-18 06:49:23 +01:00 |
|
InsanePrawn
|
7a324555da
|
Type annotate all the things!
|
2022-02-18 06:32:04 +01:00 |
|
InsanePrawn
|
a7da033845
|
distro: fix type annotations to please mypy
|
2022-02-18 03:30:21 +01:00 |
|
InsanePrawn
|
d13392b2b8
|
chroot: break up into subclasses
|
2022-02-17 21:49:24 +01:00 |
|