Commit graph

532 commits

Author SHA1 Message Date
InsanePrawn
f8d2faf571 After building a package, remove it from pacman cache if a same name file already exists (checksums will differ) 2021-09-30 17:48:15 +02:00
InsanePrawn
143994d23a fix /app -> var mgiration typo 2021-09-30 17:26:45 +02:00
InsanePrawn
0b134257cc make main.py _the_ entry point, also chmod +x 2021-09-30 17:19:55 +02:00
InsanePrawn
482c5f8111 Get rid of /app hardcodes
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-30 17:18:32 +02:00
InsanePrawn
0e21f9060d small fixes 2021-09-30 05:05:30 +02:00
InsanePrawn
81f22e67ae include image size in flavour, centralise fs resizing in image.py 2021-09-30 05:04:42 +02:00
InsanePrawn
a3d85cda8c config.get_path(), wrapper: remove --config/-C from wrapper args 2021-09-30 03:50:47 +02:00
InsanePrawn
faa855eda9 Improve cache clean 2021-09-30 03:49:20 +02:00
InsanePrawn
9b83bb16cd forgot utils.py 2021-09-30 01:00:28 +02:00
InsanePrawn
f424e9ce8f Don't wrap in docker for little wrappers like ssh and telnet if the tool is available on the host 2021-09-29 23:49:46 +02:00
InsanePrawn
1d172ad635 reactive image inspect cmd since we're now no longer forced to wrap in docker 2021-09-29 23:21:19 +02:00
InsanePrawn
f3794f939e Move enforce_wrapper() into appropiate CMDs. This speeds up --help as a side effect! 2021-09-29 23:18:12 +02:00
InsanePrawn
18c689f897 Add config init, currently broken due to docker wrapping 2021-09-29 22:57:26 +02:00
InsanePrawn
dad46d3655 Unbreak some of the things!
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-29 16:59:26 +02:00
InsanePrawn
f6678181b8 let's break all the things! (use distros to generate repos)
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-29 16:54:26 +02:00
InsanePrawn
becde79172 images: repo typo (comma goes tuple), logging/exception handling 2021-09-29 02:35:53 +02:00
InsanePrawn
f09deaa9a5 a lot: profiles, some more help strings. partial: exceptions instead of exit()
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-29 02:00:59 +02:00
Prawn
ebdd8bf111 Merge branch 'dev-fix' into 'dev'
Dev: Added missing repos to image.py

See merge request kupfer/kupferbootstrap!5
2021-09-28 19:04:04 +00:00
YourSandwich
f387c05645 Added missing repos 2021-09-28 18:54:06 +02:00
InsanePrawn
e705af21f5 flavours: only offer packaged DEs 2021-09-27 02:15:27 +02:00
InsanePrawn
3594952a13 Cleanups, packages/cmd_check: ignore comments, cmd_build: add --force
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
23ff0d50e0 packages.py: cleanups 2021-09-26 17:19:30 +02:00
InsanePrawn
d08e25fe1b Add distros.get_base_distros() 2021-09-26 17:19:30 +02:00
InsanePrawn
fef0f07297 buildroot: don't expect signatures from kupfer repos, small error logging bugfix in chroot.py 2021-09-26 17:19:30 +02:00
InsanePrawn
3b69c2235b Crosscompile is borked, host-compile seems working
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
232df81901 WIP: Add scaffolding for arch-agnostic base-distro handling 2021-09-26 17:19:30 +02:00
InsanePrawn
044b721edd fixed dep detection. TODO: add /prebuilts/$repo to host/native pacman.conf
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
ba57162f3b please the lint0r 2021-09-26 17:19:30 +02:00
InsanePrawn
44261ffccb new dependency generation algorithm, dynamic chroot paths [almost] everywhere 2021-09-26 17:19:30 +02:00
InsanePrawn
e198097cf1 wrapper: use paths from config, clean up volume generation, mount wrapper-customized config into container 2021-09-26 17:19:30 +02:00
InsanePrawn
40fe23ae28 config: add dump_toml() and dump_file() 2021-09-26 17:19:30 +02:00
InsanePrawn
d9662cc0d1 config: renamed paths 2021-09-26 17:19:30 +02:00
InsanePrawn
04cce26ca0 chroots: use path from config
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
63a9cf1218 logger.py: reformat 2021-09-26 17:19:30 +02:00
InsanePrawn
d52a615774 Make main.py the main entrypoint again and call docker wrapper enforcement from cli() callback
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
b87fdf722b packages: honor build.crosscompile config setting 2021-09-26 17:19:30 +02:00
InsanePrawn
b36539af4c config.py: refactor merge_configs() out of parse_file() and add sanitize_config() alias 2021-09-26 17:19:30 +02:00
InsanePrawn
82409e63c4 packages: use thread count from config 2021-09-26 17:19:30 +02:00
InsanePrawn
ba7043b654 config.py: store config path in runtime conf and log file load 2021-09-26 17:19:30 +02:00
InsanePrawn
32fbc7529b config profiles: add optional user password 2021-09-26 17:19:30 +02:00
InsanePrawn
144acee10f WIP: Improve config parsing, make --verbose and --config-file global options
Bonus: Generalize and reuse cmd_ssh()

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
4cf608eeb6 load_config(): add merge_defaults parameter, fix accidental overwriting of default profile when merging 2021-09-26 17:19:30 +02:00
InsanePrawn
7f153c214c config.py: formatting 2021-09-26 17:19:30 +02:00
InsanePrawn
9cc09e4f5b config: add config parsing and merging
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
07c61f9a33 Add first draft for config parsing
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:19:30 +02:00
InsanePrawn
2de5d33f19 Constants: apply device package renames to device-*
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-09-26 17:13:15 +02:00
jld3103
c536baec33 Fix optdepends comments check 2021-08-18 13:25:53 +02:00
jld3103
2054f48133 Fix another infinite loop in dependency resolution 2021-08-18 13:11:19 +02:00
jld3103
7729a7982e Restructure pkgbuilds layout 2021-08-18 12:27:03 +02:00
InsanePrawn
76a7ddafbe packages: add string representation
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-17 21:29:15 +02:00