Commit graph

725 commits

Author SHA1 Message Date
InsanePrawn
c86ce577d1 binfmt: move to own module, add cmd_register(), cmd_unregister() to cli 2023-06-14 09:24:58 +00:00
InsanePrawn
46507f8dbe binfmt: rename {,un}register() to binfmt_{,un}register() 2023-06-14 09:24:58 +00:00
InsanePrawn
0d866c6287 binfmt: pass through chroot properly 2023-06-14 09:24:58 +00:00
InsanePrawn
3c9b96f03f image: rename aboot to abootimg and rootfs to full 2023-06-12 01:10:54 +02:00
InsanePrawn
407d8893a3 image/cli: cmd_flash: improve log messages and order of partitions in CLI help 2023-06-12 01:00:24 +02:00
InsanePrawn
379e951526 packages/cli: cmd_list(): print package mode 2023-06-10 20:19:33 +02:00
InsanePrawn
ad80b3e889 image/flash: give user output while copying image for shrinking 2023-04-30 16:58:56 +02:00
InsanePrawn
efe4bf085d image: shrink_filesystem(): align file end to 4096b
otherwise fastboot seems to get upset
2023-04-30 16:58:56 +02:00
InsanePrawn
de76641fa1 image: dump_file_from_image(): try to detect debugfs failure
Try to detect missing file after supposedly dumping it since debugfs doesn't always error out correctly
2023-04-30 16:58:56 +02:00
InsanePrawn
edcad72f7a image: use correct deviceinfo value for device sector size 2023-04-30 16:58:56 +02:00
InsanePrawn
33e1214aef image/fastboot: add --confirm option and generalize fastboot_erase{_dtbo,}() 2023-04-30 05:04:57 +02:00
InsanePrawn
4ba5f87f1e image: factor out get_fs_size() from shrink_fs() 2023-04-30 00:00:32 +02:00
InsanePrawn
3ac8fc0689 image/flash: actually use --split-size 2023-04-26 14:21:51 +02:00
InsanePrawn
6648a77822 image/cli: add --sector-size option 2023-04-26 14:21:50 +02:00
InsanePrawn
69b7ea9db2 image/flash: implement fastboot rootfs image flashing, add --no-shrink
Use fastboot by default instead of jumpdrive, respecting the deviceinfo
2023-04-26 14:20:37 +02:00
InsanePrawn
8a266f9149 image/fastboot: use exec.cmd.run_cmd() for loggability 2023-04-26 14:20:37 +02:00
InsanePrawn
604f123067 image/fastboot: flash_image(): add optional sparse_size parameter 2023-04-26 14:20:37 +02:00
InsanePrawn
08285a7931 packages/pkgbuild: fix null deref in __repr__() 2023-04-24 17:15:51 +02:00
InsanePrawn
68154467f3 distro/repo_config: reformat with yapf 0.33 2023-04-24 15:34:02 +02:00
InsanePrawn
dbc512ee3f packages/cli: cmd_check(): add noextract PKGBUILD field 2023-04-24 01:40:10 +02:00
InsanePrawn
7945a4756f distro/repo: use persistent dir for repo db if RemoteRepo.cache_repo_db == True 2023-04-17 05:32:12 +02:00
InsanePrawn
fd2abd3805 exec/file: chmod(): add privileged=True, use False for get_temp_dir() 2023-04-17 04:49:29 +02:00
InsanePrawn
44eaf0d767 utils: add content-size to download_file 2023-04-17 04:49:29 +02:00
InsanePrawn
74a7aeb668 packages/cli: cmd_update(): add enforce_wrap() 2023-04-17 04:49:29 +02:00
InsanePrawn
acee95a003 dictscheme: rename from dataclass as it's confusing with builtin dataclasses 2023-04-17 02:37:10 +02:00
InsanePrawn
b84d2202db python 3.9 compat: introduce typehelpers.py for NoneType, UnionType, TypeAlias 2023-04-17 02:37:10 +02:00
InsanePrawn
c357b0a968 wrapper: only run at_exit handler once 2023-04-16 06:00:50 +02:00
InsanePrawn
67590fe12b config/cli: drop obsolete warning when pkgbuilds arent initialised in prompt_profile() 2023-04-16 06:00:50 +02:00
InsanePrawn
cd1d0543fe wrapper: move at_exit handling into wrap() 2023-04-16 05:23:31 +02:00
InsanePrawn
6961cb7f36 gitlab-ci: override docker dind mtu
sigh. -.-
2023-04-16 05:23:31 +02:00
InsanePrawn
eb13a7d093 image/cli: improve help for cmd_inspect() 2023-04-16 05:23:31 +02:00
InsanePrawn
1a695adff4 wrapper/docker: don't suppress docker build stdout when verbose enabled 2023-04-16 05:23:31 +02:00
InsanePrawn
d3cc5e9483 main.py: announce force-enabling wrapper 2023-04-16 04:03:49 +02:00
InsanePrawn
cfd65f9638 gitignore: add kate swap files 2023-04-16 04:03:49 +02:00
InsanePrawn
61b1444360 wrapper_su_helper.py: tolerate non-unique uid 2023-04-16 04:03:49 +02:00
InsanePrawn
4115d6ba00 packages/build: build_package(): source /etc/profile before building so PATH is complete 2023-04-16 04:03:49 +02:00
InsanePrawn
0353693025 exec/cmd: flatten_shell_script(): specifically quote empty strings even when shell_quote is disabled 2023-04-16 04:03:49 +02:00
InsanePrawn
f6fb521c8a packages: build_enable_qemu_binfmt(): don't use is_registered() 2023-04-16 04:03:49 +02:00
InsanePrawn
f113faa201 constants: add kupfer-config --user 2023-04-16 03:42:12 +02:00
InsanePrawn
91d2cd3681 config/cli: use wrapper.execute_without_exit() for prompt_profile_{flavour,device}() to avoid prompting in docker 2023-04-16 03:37:22 +02:00
InsanePrawn
b9969d8feb wrapper: add execute_without_exit() 2023-04-16 03:37:22 +02:00
InsanePrawn
389d44e776 wrapper: add Wrapper.should_exit 2023-04-16 03:37:22 +02:00
InsanePrawn
d2d9cb6c7c wrapper: add Wrapper.argv_override 2023-04-16 03:37:22 +02:00
InsanePrawn
ec0e430c00 config/cli: save main config body separately from profiles to support flavour and device listing 2023-04-16 03:37:22 +02:00
InsanePrawn
954592fc62 config/cli: warn when saving config in container 2023-04-16 03:37:22 +02:00
InsanePrawn
e07306d5c4 wrapper: add needs_wrap(), typehint return values 2023-04-16 03:37:22 +02:00
InsanePrawn
dfd191060a config/state: remove field_name from missing device/flavour hint as it gets used as the profile name 2023-04-16 03:37:22 +02:00
InsanePrawn
13aa258794 distro: use repo_config properly 2023-04-16 03:31:35 +02:00
InsanePrawn
572142bf0b dataclass: replace print spam with decent logging 2023-04-16 03:28:49 +02:00
InsanePrawn
28a5400d48 distro/distro: get_base_distro(): add unsiged=True to keep old default behaviour 2023-03-27 21:27:10 +02:00