internal/rosa/package: migrate system image

The overlay argument also enables migration of stage0.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-23 17:44:38 +09:00
parent ac5488eef6
commit 3f33b62dfd
3 changed files with 46 additions and 36 deletions

View File

@@ -19,3 +19,27 @@ package initramfs-image {
gen_init_cpio,
];
}
package system-image {
description = "Rosa OS system image";
version = unversioned;
exclude = true;
source = earlyinit;
extra = [
musl,
mksh,
toybox,
kmod,
kernel,
firmware,
];
overlay = "/mnt";
exec = generic {
build = "mksquashfs /mnt/system /work/system.img";
};
inputs = [ squashfs-tools ];
}