Skip to content

Commit bc113ca

Browse files
authored
Merge pull request #1014 from replicajune/add-aarch64-opensuse-tumbleweed
Add aarch64 opensuse tumbleweed
2 parents e75b0ea + 104c7c4 commit bc113ca

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/experimental/opensuse-tumbleweed.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ images:
33
# Hint: run `limactl prune` to invalidate the "Current" cache
44
- location: https://download.opensuse.org/tumbleweed/appliances/openSUSE-Tumbleweed-JeOS.x86_64-OpenStack-Cloud.qcow2
55
arch: "x86_64"
6-
# No aarch64 OpenStack build found :(
6+
- location: http://download.opensuse.org/ports/aarch64/tumbleweed/appliances/openSUSE-Tumbleweed-ARM-JeOS-efi.aarch64.qcow2
7+
arch: "aarch64"
78
mounts:
89
- location: "~"
910
- location: "/tmp/lima"

pkg/cidata/cidata.TEMPLATE.d/boot/30-install-packages.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ if [ "${LIMA_CIDATA_UDP_DNS_LOCAL_PORT}" -ne 0 ] || [ "${LIMA_CIDATA_TCP_DNS_LOC
2323
fi
2424

2525
# Install minimum dependencies
26-
if command -v apt-get >/dev/null 2>&1; then
26+
# apt-get detected through the first bytes of apt-get binary to ensure we're
27+
# matching to an actual binary and not a wrapper script. This case is an issue
28+
# on OpenSuse which wraps its own package manager in to a script named apt-get
29+
# to mimic certain options but doesn't offer full parameters compatibility
30+
# See : https://github.com/lima-vm/lima/pull/1014
31+
if hexdump -C -n 4 "$(command -v apt-get)" | grep -qF 'ELF' >/dev/null 2>&1; then
2732
pkgs=""
2833
if [ "${LIMA_CIDATA_MOUNTTYPE}" = "reverse-sshfs" ]; then
2934
if [ "${LIMA_CIDATA_MOUNTS}" -gt 0 ] && ! command -v sshfs >/dev/null 2>&1; then

0 commit comments

Comments
 (0)