tftpboot: support compressed root

This commit is contained in:
Daniel Barlow
2023-12-22 23:20:35 +00:00
parent c5e9fcecc7
commit 64a3f50248
2 changed files with 28 additions and 4 deletions

View File

@@ -22,13 +22,15 @@ in pkgsBuild.runCommand "check" {
mkdir vm
ln -s ${img} result
touch empty empty2
run-liminix-vm \
--background ./vm \
--u-boot ${uboot}/u-boot.bin \
--arch ${derivation.pkgs.stdenv.hostPlatform.qemuArch} \
--wan "user,tftp=`pwd`" \
--disk-image result/rootfs \
result/uimage result/rootfs
--disk-image empty2 \
empty empty2
expect ${./script.expect} 2>&1 |tee $out
'';
@@ -39,4 +41,7 @@ in {
boot.tftp.kernelFormat = "zimage";
};
mips = check "qemu" "ubootQemuMips" {};
mipsLz = check "qemu" "ubootQemuMips" {
boot.tftp.compressRoot = true;
};
}