summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-01-26 06:52:08 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-01-26 06:52:08 +0100
commit35265c613e24c8a1cd50b94536d321e327161510 (patch)
treeef2b2f79c8dca060169e782652c35ad49f06f7fd
parentb3e187dbff9c190af658e592e22fdbd96c908697 (diff)
downloaddebvm-35265c613e24c8a1cd50b94536d321e327161510.tar.gz
debvm-run: be a bit more verbose about detected architecture
-rwxr-xr-xbin/debvm-run3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/debvm-run b/bin/debvm-run
index 1ac2360..9cfce7f 100755
--- a/bin/debvm-run
+++ b/bin/debvm-run
@@ -193,6 +193,9 @@ VMARCH=$ARCHITECTURE
if command -v elf-arch >/dev/null 2>&1; then
/sbin/debugfs "$IMAGE" -R "cat /bin/true" > "$KERNELTMP"
VMARCH=$(elf-arch "$KERNELTMP")
+ echo "Detected VM architecture as $VMARCH" 1>&2
+else
+ echo "Assuming VM architecture as $VMARCH" 1>&2
fi
for KERNELLINK in vmlinuz vmlinux boot/vmlinuz boot/vmlinux; do