Commit graph

293 commits

Author SHA1 Message Date
InsanePrawn
335cf2bf05 packages/cmd_clean(): make src/ and pkg/ selectable, add -n/--noop 2022-02-17 02:34:56 +01:00
InsanePrawn
2ece1f288c move pacman.conf body to generator.py, fix check_space for build chroots
with check_space=True, build chroots fail to pacman -S anything, because their rootfs is not a mountpoint,
hence pacman's space calculations will fail and return not enough free space.
We do want these space checks when pacstrapping device rootfilesystems though.
2022-02-17 02:32:50 +01:00
InsanePrawn
59747f7a14 remove unused local/bin/pacman_aarch64 2022-02-17 01:12:32 +01:00
InsanePrawn
418a8c16c2 wrapper: refactor docker into submodule 2022-02-16 21:14:37 +01:00
InsanePrawn
b6dfc9e065 wrapper: move to directory 2022-02-16 18:38:18 +01:00
InsanePrawn
5b730ce342 cmd_image_inspect(): add profile-name arg 2022-02-15 00:03:48 +01:00
InsanePrawn
1179cdf212 wrapper: debug-print docker build cmd 2022-02-14 20:53:33 +01:00
InsanePrawn
96cb6fc3f1 binfmt.unregister(): drop unused args 2022-02-14 20:53:15 +01:00
InsanePrawn
306aaeb9a6 chroot.create_user(): change user password instead of root's 2022-02-14 20:51:43 +01:00
InsanePrawn
9013df51a6 Dockerfile: initialise and update archlinux keyring before package installations 2022-02-14 20:51:10 +01:00
InsanePrawn
d2ec51b364 trim leftovers to please the formatter 2022-02-14 20:05:13 +01:00
InsanePrawn
5f6772eb39 add size_extra_mb to profiles, use in cmd_image_build() 2022-02-14 19:59:43 +01:00
InsanePrawn
27aba2e21f config.py: fix cmd_config_init() saving 2022-02-14 19:31:47 +01:00
InsanePrawn
bd20a1123e cmd_image_build(): always create new -full.img file 2022-02-14 18:53:36 +01:00
InsanePrawn
3347b33e50 constants: phosh: disable squeekboard temporarily and bump image size to 5GB 2022-02-14 18:53:04 +01:00
InsanePrawn
a687287c04 generate_pacman_conf(): default check_space to True 2022-02-14 18:32:37 +01:00
InsanePrawn
f1ce9865b6 boot.py: cleanups, don't create loopdev just for jumpdrive 2022-02-13 20:00:59 +01:00
InsanePrawn
3ed8d379dd Add help strings to all click CMDs 2022-02-13 19:57:04 +01:00
InsanePrawn
feadf6f1e8 flash: partprobe the target as well 2022-02-13 18:48:48 +01:00
InsanePrawn
f0a9d3a670 image.py: add create_filesystem(), improve log output in cmd_inspect() 2022-02-07 01:59:53 +01:00
InsanePrawn
fc58f4288f image.py: specify blocksize when creating filesystems (mke2fs -b) 2022-02-07 01:20:38 +01:00
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