commit a962f183696cf56c9fc98180a50605b788a8ecb7 parent 9a29a042e84cba633e7d7e9c22145d34e493f467 Author: Daniel Barlow <dan@telent.net> Date: Thu, 21 Dec 2023 10:50:16 +0000 run-liminix-vm: map rootfs file iff --phram-address supplied Diffstat:
| M | pkgs/run-liminix-vm/run-liminix-vm.fnl | | | 13 | ++++++++----- |
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/pkgs/run-liminix-vm/run-liminix-vm.fnl b/pkgs/run-liminix-vm/run-liminix-vm.fnl @@ -113,11 +113,14 @@ (local exec-args (-> [] (appendm (. bin options.arch)) - (appendm ["-m" "272" - "-echr" "16" - "-device" - (.. "loader,file=" options.rootfs ",addr=" options.phram-address) - ]) + (appendm ["-echr" "16"]) + (appendm (if options.phram-address + [ + "-m" "272" + "-device" + (.. "loader,file=" options.rootfs ",addr=" options.phram-address) + ] + ["-m" "256"])) (appendm (if options.background (background options.background)