Commit graph

50 commits

Author SHA1 Message Date
InsanePrawn
64bcdcfb5f Packages: Move makepkg parsing into build_chroot 2021-12-01 19:59:35 +01:00
InsanePrawn
a66992ff45 chroot: add option not to add kupfer repos to avoid bootstrapping problems later 2021-10-27 02:46:53 +02:00
InsanePrawn
e6c55a1311 Chroot.initialize: also bind-mount pacman-cache for base-like chroots (that don't get copied) 2021-10-27 02:43:48 +02:00
InsanePrawn
8934d94f9c chroot.py: fix activation and initialisation of build_chroots: mount packages 2021-10-27 00:48:15 +02:00
InsanePrawn
8867edf876 chroot: change get_device_chroot() signature to use device, flavour instead of name 2021-10-25 20:58:29 +02:00
InsanePrawn
efbecb3e40 Chroot: add mount_rootfs()
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-25 20:58:04 +02:00
InsanePrawn
0884cb2efd Chroot: clean up and centralise unmounting 2021-10-25 20:56:12 +02:00
InsanePrawn
38438d5fda Chroot.initialise(): add reset param, refactor in general 2021-10-25 01:51:03 +02:00
InsanePrawn
49e6bf740f Chroot.run_cmd(): add cwd param, convert packages.setup_sources() to use run_cmd() for makepkg 2021-10-25 01:51:03 +02:00
InsanePrawn
4cc0235329 chroot.py: fixes 2021-10-25 01:51:03 +02:00
InsanePrawn
bc8904c1f1 WIP: make packages.py work moar 2021-10-25 01:51:03 +02:00
InsanePrawn
3a9deb2340 WIP: refactor packages.py to use Chroot 2021-10-25 01:51:03 +02:00
InsanePrawn
06fa679bd5 chroot.py: add Chroot.reset() 2021-10-25 01:51:03 +02:00
InsanePrawn
d84e82ec64 chroot.py: cleanups 2021-10-25 01:51:03 +02:00
InsanePrawn
91cec7fabd Chroot.activate(): actually do the mounting 2021-10-25 01:51:03 +02:00
InsanePrawn
c5183bd0bf Refactor chroot.py into Chroot class 2021-10-25 01:51:03 +02:00
jld3103
c22b509347 Further fix package building 2021-10-17 18:14:39 +02:00
jld3103
90366e0a85 Simplify generation of pacman.conf 2021-10-16 10:45:43 +02:00
InsanePrawn
c5a12132d3 chroot: always overwrite makepkg.conf (fixes .zst vs .xz confusion) 2021-10-10 18:29:44 +02:00
InsanePrawn
4bba3e606c crossdirect rustc hotfix 2021-10-10 14:06:25 +02:00
jld3103
77ebd48eab Fix image building 2021-10-08 15:22:02 +02:00
jld3103
a8695f0095 Create pacman cache dir if it does not exist 2021-10-08 10:03:10 +02:00
InsanePrawn
5f67435570 Really really make crossdirect work: symlink /usr/include to /include 2021-10-07 13:51:01 +02:00
jld3103
291ddb85ca Always install base, base-devel and git inside of the base chroots 2021-10-06 21:25:44 +02:00
jld3103
c4760bd99e Fix formatting 2021-10-06 21:02:30 +02:00
InsanePrawn
eb67c34f9b i think crossdirect works for real now? 2021-10-05 20:31:11 +02:00
InsanePrawn
643cc21d3c bugfixes! what kind of drunk seafood wrote these? 2021-10-05 16:36:44 +02:00
InsanePrawn
0b2caa02af Split up repos by arches, always add already-built packages to repo file again, don't use repo-add --new, ...
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-04 20:16:27 +02:00
InsanePrawn
1ba4dcfaec refactor packages.py code into chroot.generate_makepkg_conf(), use generated conf in check_package_version_built() 2021-10-04 14:36:39 +02:00
InsanePrawn
6242e4850d partially fix crossdirect and QEMU_LD_PREFIX env var, copy /lib/ld-linux-* to foreign chroot for cross-execution 2021-10-04 13:34:37 +02:00
InsanePrawn
b490cd10ee Clean up envs passing for chroots, add crossdirect packages (todo: cleanup) 2021-10-02 06:36:48 +02:00
InsanePrawn
d85c00fa12 Move mounting code to utils.py, move a lot of chroot-logic from packages to chroot.py, cmd_chroot
also moar crossdirect

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-01 18:30:01 +02:00
InsanePrawn
a4c06446e3 first attempt at adding crossdirect
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-01 18:30:00 +02:00
jld3103
4d9fe835e7 Log when installing packages 2021-10-01 12:33:22 +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
a3d85cda8c config.get_path(), wrapper: remove --config/-C from wrapper args 2021-09-30 03:50:47 +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
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
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
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
44261ffccb new dependency generation algorithm, dynamic chroot paths [almost] everywhere 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
jld3103
98040d8a31 Apply formatting 2021-08-08 18:32:42 +02:00
jld3103
bd751e539f Only add user to chroot when needed 2021-08-08 18:18:36 +02:00
jld3103
158bdad40b Fix location of local etc and bin files 2021-08-08 13:15:48 +02:00
InsanePrawn
cde685f06e provide /bin/pacman_aarch64 wrapper script, chroot: handle extra repos in pacman.conf
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-06 05:24:06 +02:00
InsanePrawn
1364a97ddb image: factor out create_chroot into its own file
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-08-06 02:21:50 +02:00