truncate creates the extra disk space sparse so this doesn't affect
the host's disk usage. The extra disk space will have to be partitioned
to be usable inside the image though (but this is perfect for systemd's
use case as we want to partition the free space with systemd-repart).
- `--base-image` is split into `--base-tree` and `--overlay`.
- Removed `--cache-initrd`, instead, use a prebuilt initrd with `Initrds=` to avoid rebuilding the initrd all
the time.
+- Disk images are now resized to 8G when booted to give some disk space to play around with in the booted
+ image.
## v14
if build and args.auto_bump:
bump_image_version()
+ # Give disk images some space to play around with if we're booting one.
+ if args.verb in (Verb.shell, Verb.boot, Verb.qemu) and last.output_format == OutputFormat.disk:
+ run(["truncate", "--size", "8G", last.output_dir / last.output])
+
with prepend_to_environ_path(last.extra_search_paths):
if args.verb in (Verb.shell, Verb.boot):
run_shell(args, last)