Commit graph

722 commits

Author SHA1 Message Date
InsanePrawn
52933e6377 image, flash: refactor get_image_{name,path} to not rely on a chroot instance, introduce per-partition image files 2022-02-07 00:56:27 +01:00
InsanePrawn
c9cd26be61 image.py: fix image corruption with partprobe
Partition mappings are initially created with the wrong sectorsize
for whatever reason..
2022-02-07 00:52:18 +01:00
InsanePrawn
dd1423cfc9 constants.py: raise phosh-flavour image size to 4GB
it's 3023M installed on enchilada
2022-02-07 00:21:11 +01:00
InsanePrawn
94cd4b8331 s/bootimg/aboot/i 2022-02-06 20:36:11 +01:00
InsanePrawn
1b71a686cd image.py: refactor mount_rootfs_loop_device() into mount_chroot() 2022-02-06 19:48:34 +01:00
InsanePrawn
0533b5b901 image.py: rename boot.img to aboot.img 2022-02-06 19:41:31 +01:00
InsanePrawn
050f73c90c generator.py: use constants.Arch type 2022-02-06 19:22:53 +01:00
InsanePrawn
61c150843e packages.py: --skipgpgcheck because we don't have the keys in our keyring usually 2022-02-06 19:22:53 +01:00
InsanePrawn
a8b01ae0da README: add usage instructions 2022-02-06 04:37:42 +01:00
InsanePrawn
531845f176 image.py: correct umount cmd 2022-02-04 04:15:17 +01:00
InsanePrawn
00c61844e7 packages: ensure all dependencies install successfully in host-mode 2022-01-29 07:52:16 +01:00
InsanePrawn
190251dd7d packages, chroot: make sure chroots are initialised and /prebuilts is mounted 2022-01-29 07:51:38 +01:00
InsanePrawn
6bc3d36b11 chroot.py: small fixes, mainly: copy extra_packages and don't just use instance dict 2022-01-29 07:49:00 +01:00
InsanePrawn
63b4619892 chroot.py: add .activate() and mount_{pacman_cache,packages}() to cmd_chroot() and activate_crossdirect() 2022-01-28 19:16:22 +01:00
InsanePrawn
d42c94e738 packages.py: remove --prevent-downgrade (once again?) 2022-01-28 18:09:44 +01:00
InsanePrawn
c6fc2a186c packages.py: generate ENV vars correctly (after config is loaded) 2022-01-28 18:09:36 +01:00
InsanePrawn
659fc14374 image.py: fixes for cmd_build: enforce wrap, unmount rootfs at the end && sync 2022-01-28 14:21:11 +01:00
InsanePrawn
5bdc437f79 fix formatting 2022-01-27 14:27:39 +01:00
InsanePrawn
209708a33e chroot.create_user(): default username to 'kupfer' 2022-01-27 05:06:01 +01:00
InsanePrawn
b454781592 image build: also try building missing packages, add --[no-]build-pkgs 2022-01-27 04:07:06 +01:00
InsanePrawn
6d05f2b9e5 packages.py: cmd_{build,check}: fail if no packages match specified path. also enforce_wrap() in check 2022-01-27 02:31:51 +01:00
InsanePrawn
dfce1cf4e0 chroot.mount_rootfs(): no need to put "loop" into mount options, loopdev is created externally 2022-01-26 18:14:51 +01:00
InsanePrawn
0cec961288 image.py: cmd_build(): add profile_name parameter 2022-01-26 17:58:46 +01:00
InsanePrawn
61476aae62 main.py: add -E alias for --error-shell 2022-01-26 17:53:53 +01:00
InsanePrawn
fd46977a2f chroot.py: try_install_packages(): pacman -S '--overwrite=/*' 2022-01-26 17:50:52 +01:00
InsanePrawn
a0a5a5a677 Migrate leftovers to CHROOT_PATHS 2022-01-26 17:50:08 +01:00
InsanePrawn
8ead5c9542 Remove all static references to /prebuilts 2022-01-26 15:56:38 +01:00
InsanePrawn
b65823bc10 Introduce constants.CHROOT_PATHS to spec paths _inside_ chroots 2022-01-26 15:50:41 +01:00
InsanePrawn
c898e0a6b5 chroot.py: mount_crosscompile(): add fail_if_mounted=False parameter 2022-01-26 14:05:12 +01:00
InsanePrawn
6900019fa2 packages.py: setup_sources(): use correct makepkg.conf 2022-01-26 13:57:46 +01:00
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