munix: run realpath on nixos closure before running

this is more convinent when using `nix build`.
This commit is contained in:
Jörg Thalheim 2025-11-03 17:57:08 +01:00
parent c32be2f8c8
commit 181e675f02

3
munix
View file

@ -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