Commit graph

27 commits

Author SHA1 Message Date
Syboxez Blank
e783ec6632 image/image.py: Fix off-by-one error when creating boot partition in full image 2023-12-14 21:03:14 -06:00
InsanePrawn
4792eafe80 image: bump /boot default size to 200MB 2023-09-13 18:14:41 +02:00
InsanePrawn
d2942945e4 image: pass sector_size to partition_device() 2023-09-13 18:14:41 +02:00
InsanePrawn
fbe43456f8 image: don't pass block size to mkfs.ext* 2023-09-13 18:14:41 +02:00
InsanePrawn
03c95dcb6a image/image: rename losetup_rootfs_image() to losetup_setup_image() 2023-09-13 18:14:41 +02:00
InsanePrawn
095ecb672f image: use IMG_FILE_BOOT_DEFAULT_SIZE to calculate shrunk boot partition size 2023-09-13 18:14:41 +02:00
InsanePrawn
a9cd8178c8 image: add LUKS support and --[no-]encryption CLI flag to build & inspect subcommands 2023-09-13 18:14:41 +02:00
InsanePrawn
6de8137c90 image: add new module: cryptsetup 2023-09-13 18:14:41 +02:00
InsanePrawn
8437613e6e image/image: move CLI methods to image/cli.py 2023-09-13 18:14:30 +02:00
InsanePrawn
3c9b96f03f image: rename aboot to abootimg and rootfs to full 2023-06-12 01:10:54 +02:00
InsanePrawn
407d8893a3 image/cli: cmd_flash: improve log messages and order of partitions in CLI help 2023-06-12 01:00:24 +02:00
InsanePrawn
ad80b3e889 image/flash: give user output while copying image for shrinking 2023-04-30 16:58:56 +02:00
InsanePrawn
efe4bf085d image: shrink_filesystem(): align file end to 4096b
otherwise fastboot seems to get upset
2023-04-30 16:58:56 +02:00
InsanePrawn
de76641fa1 image: dump_file_from_image(): try to detect debugfs failure
Try to detect missing file after supposedly dumping it since debugfs doesn't always error out correctly
2023-04-30 16:58:56 +02:00
InsanePrawn
edcad72f7a image: use correct deviceinfo value for device sector size 2023-04-30 16:58:56 +02:00
InsanePrawn
33e1214aef image/fastboot: add --confirm option and generalize fastboot_erase{_dtbo,}() 2023-04-30 05:04:57 +02:00
InsanePrawn
4ba5f87f1e image: factor out get_fs_size() from shrink_fs() 2023-04-30 00:00:32 +02:00
InsanePrawn
3ac8fc0689 image/flash: actually use --split-size 2023-04-26 14:21:51 +02:00
InsanePrawn
6648a77822 image/cli: add --sector-size option 2023-04-26 14:21:50 +02:00
InsanePrawn
69b7ea9db2 image/flash: implement fastboot rootfs image flashing, add --no-shrink
Use fastboot by default instead of jumpdrive, respecting the deviceinfo
2023-04-26 14:20:37 +02:00
InsanePrawn
8a266f9149 image/fastboot: use exec.cmd.run_cmd() for loggability 2023-04-26 14:20:37 +02:00
InsanePrawn
604f123067 image/fastboot: flash_image(): add optional sparse_size parameter 2023-04-26 14:20:37 +02:00
InsanePrawn
eb13a7d093 image/cli: improve help for cmd_inspect() 2023-04-16 05:23:31 +02:00
InsanePrawn
f113faa201 constants: add kupfer-config --user 2023-04-16 03:42:12 +02:00
InsanePrawn
78874a15e6 packages/cli: linter fixes 2023-03-17 16:34:20 +01:00
InsanePrawn
82a87e7ea9 implement explicit Optional type hints for =None parameters
Thanks https://github.com/hauntsaninja/no_implicit_optional
2022-11-09 20:19:04 +01:00
InsanePrawn
50bcd0de63 image: create new module from {image,boot,fastboot,flash}.py 2022-11-09 20:19:04 +01:00