From 181e675f02f905640f83b12d261a6948a59d1a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 3 Nov 2025 17:57:08 +0100 Subject: [PATCH] munix: run realpath on nixos closure before running this is more convinent when using `nix build`. --- munix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/munix b/munix index 18354bb..4c5e9c4 100755 --- a/munix +++ b/munix @@ -48,6 +48,9 @@ if [ "$MICROVM_CLOSURE" = "" ]; then exit 1 fi +# Resolve symlinks automatically +MICROVM_CLOSURE=$(realpath "$MICROVM_CLOSURE") + if [ ${#MICROVM_COMMAND[@]} -eq 0 ]; then MICROVM_COMMAND=("bash") fi