Commit graph

189 commits

Author SHA1 Message Date
InsanePrawn
ae0093b356 chroot.py: finally fix mount detection(?) and leaking (partially ignore it :/) 2022-01-26 13:29:39 +01:00
InsanePrawn
2e5205c9e9 Utils: add check_findmnt(), log_or_exception(), add PathLike type hint 2022-01-26 13:28:22 +01:00
InsanePrawn
863fbc1df0 pacman.conf: make ParallelDownloads configurable 2021-12-29 21:30:06 +01:00
InsanePrawn
ae5b8b68f7 packages.py: extract build_enable_qemu_binfmt(), use in image.py 2021-12-29 00:57:35 +01:00
InsanePrawn
844646baca Chroot.mount(): don't purely rely on ismount(), also check self.active_mounts as we should. 2021-12-20 04:21:09 +01:00
InsanePrawn
e3f49042ff chroot.try_install_packages(): Always refresh DBs (-Sy) on first try 2021-12-17 03:23:14 +01:00
InsanePrawn
8e8cd4eafa distro.py: remove leftover line 2021-12-02 15:10:55 +01:00
InsanePrawn
b08326d707 chroot.py: fix error message 2021-12-01 20:32:34 +01:00
InsanePrawn
1d9f8239a0 distro.py: don't scan repos by default 2021-12-01 20:30:55 +01:00
InsanePrawn
f5e6590e29 distro.py: add $repo.db parsing 2021-12-01 20:07:09 +01:00
InsanePrawn
b623d017be clone_pkbuilds(): add update parameter, don't update during package build 2021-12-01 20:01:07 +01:00
InsanePrawn
64bcdcfb5f Packages: Move makepkg parsing into build_chroot 2021-12-01 19:59:35 +01:00
InsanePrawn
2799f30293 image.py: register qemu with binfmt before mounting foreign images 2021-10-27 02:52:46 +02: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
f369b00ebd boot.py: use losetup 2021-10-26 06:03:31 +02:00
InsanePrawn
e034c48843 fastboot.py: add logging 2021-10-26 06:02:55 +02:00
InsanePrawn
241cee6ef1 boot.py: use get_device_chroot() 2021-10-26 05:47:24 +02:00
InsanePrawn
013a7a88d1 image.py: fix building (remove incorrect inode reservation) 2021-10-26 05:41:22 +02:00
jld3103
955546c918 Add separate boot partition 2021-10-26 02:57:58 +02:00
InsanePrawn
7de8803032 flash.py: adjust for Chroot class and paths['images'] 2021-10-25 21:09:35 +02:00
InsanePrawn
fa427f2a17 image.py: adjust for Chroot class and paths['images'] 2021-10-25 21:09:34 +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
2209447af0 ssh: don't fail if a possible key's pubkey file doesn't exist 2021-10-25 20:47:17 +02:00
InsanePrawn
525c012d9c cmd_image_inspect(): add --shell/-s 2021-10-25 20:45:23 +02:00
InsanePrawn
9ece4f582e cmd_boot(): add choices list to type arg 2021-10-25 18:21:17 +02:00
InsanePrawn
ee4f899254 partially add config.file['paths']['images'] (mostly taken from c5c8104a60)
Co-authored-by: jld3103 <jld3103yt@gmail.com>
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-25 17:48:51 +02:00
InsanePrawn
9258cbf76d config.py: docstring fixes 2021-10-25 01:51:03 +02:00
InsanePrawn
3ea3366534 cmd_config_set(): fix --non-interactive 2021-10-25 01:51:03 +02:00
InsanePrawn
482fa38954 config.py: config set: convert to correct type using click 2021-10-25 01:51:03 +02:00
InsanePrawn
34a992b5a0 config.py: add cmd_config_{get,set} 2021-10-25 01:51:03 +02:00
InsanePrawn
e6f7cc785e add -N alias for --non-interactive 2021-10-25 01:51:03 +02:00
InsanePrawn
38438d5fda Chroot.initialise(): add reset param, refactor in general 2021-10-25 01:51:03 +02:00
InsanePrawn
46b638059c Fix removing added packages from pacman cache
Now this behaviour may seem disk-shreddy, but the real issue is always running add_file_to_repo() during package scanning,
which should be solved by parsing the repo db and comparing checksums at package build time and in case pacman installation fails.
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
6be94271a2 make packages build work again 2021-10-25 01:51:03 +02:00
InsanePrawn
4cc0235329 chroot.py: fixes 2021-10-25 01:51:03 +02:00
InsanePrawn
4643cc499a fixup image.py enough to run kupferbootstrap... 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
InsanePrawn
8d1061004a config.py: fix config parsing warning and exception throwing
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-25 01:50:01 +02:00
InsanePrawn
3390014a9c packages.py: fix package update cmd with --non-interactive 2021-10-25 01:47:35 +02:00
jld3103
0e07a33968 Add packages sideload feature 2021-10-18 09:00:11 +02:00