summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-01-25 10:03:05 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-01-25 10:03:05 +0100
commit8b7a39b3713b9223c3861b5153ffc019f312e88a (patch)
tree96fa4cb236d4208ccc0c587155685270f38534c5 /bin
parent66b9374cc19c21ee5ff5b1344b43c991ac53ce91 (diff)
downloaddebvm-8b7a39b3713b9223c3861b5153ffc019f312e88a.tar.gz
debvm-run: also handle upgrading arm
elf-arch may report armel and armhf as arm.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/debvm-run1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/debvm-run b/bin/debvm-run
index 0c4ad2e..336a509 100755
--- a/bin/debvm-run
+++ b/bin/debvm-run
@@ -217,6 +217,7 @@ with_set_ex /sbin/debugfs "$IMAGE" -R "cat $INITRDNAME" > "$INITRDTMP"
# experience for multiarch kernels.
if command -v file >/dev/null 2>&1; then
case "$VMARCH:$(file -b "$KERNELTMP")" in
+ "arm:Linux kernel ARM64 boot executable Image"*) VMARCH=arm64 ;;
"armel:Linux kernel ARM64 boot executable Image"*) VMARCH=arm64 ;;
"armhf:Linux kernel ARM64 boot executable Image"*) VMARCH=arm64 ;;
# The boot stub looks the same on i386 and amd64, so we