Commit graph

53 commits

Author SHA1 Message Date
InsanePrawn
0c3592065c distro: refactor into multiple files, packages: factor out distro.Pkgbuild class 2022-02-17 05:55:35 +01:00
InsanePrawn
5b730ce342 cmd_image_inspect(): add profile-name arg 2022-02-15 00:03:48 +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
bd20a1123e cmd_image_build(): always create new -full.img file 2022-02-14 18:53:36 +01:00
InsanePrawn
3ed8d379dd Add help strings to all click CMDs 2022-02-13 19:57:04 +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
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
531845f176 image.py: correct umount cmd 2022-02-04 04:15:17 +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
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
0cec961288 image.py: cmd_build(): add profile_name parameter 2022-01-26 17:58:46 +01:00
InsanePrawn
ae5b8b68f7 packages.py: extract build_enable_qemu_binfmt(), use in image.py 2021-12-29 00:57:35 +01:00
InsanePrawn
2799f30293 image.py: register qemu with binfmt before mounting foreign images 2021-10-27 02:52:46 +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
fa427f2a17 image.py: adjust for Chroot class and paths['images'] 2021-10-25 21:09:34 +02:00
InsanePrawn
525c012d9c cmd_image_inspect(): add --shell/-s 2021-10-25 20:45:23 +02:00
InsanePrawn
4643cc499a fixup image.py enough to run kupferbootstrap... 2021-10-25 01:51:03 +02:00
jld3103
0e07a33968 Add packages sideload feature 2021-10-18 09:00:11 +02:00
jld3103
b191e307aa Write correct pacman.conf after image is built 2021-10-16 10:46:27 +02:00
jld3103
37b5ecb34b Add phosh flavour and repository 2021-10-14 20:10:32 +02:00
jld3103
c70db11d64 Fix resize2fs 2021-10-10 21:21:46 +02:00
jld3103
77ebd48eab Fix image building 2021-10-08 15:22:02 +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
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
jld3103
acf59d35e8 Fix exit code handling of e2fsck 2021-10-01 12:32:44 +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
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
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
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
04cce26ca0 chroots: use path from config
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
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
jld3103
4369df9673 Restructure building images, flashing and booting 2021-08-17 20:57:31 +02:00
jld3103
da8a437341 Make it possible to use local prebuilts 2021-08-14 11:55:54 +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