Skip to content

Commit 70a4a04

Browse files
committed
Bump alpine to 0.2.30 and fix Rosetta support
Signed-off-by: Jan Dubois <[email protected]>
1 parent f4e70a6 commit 70a4a04

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

examples/alpine.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# Using the Alpine 3.18 aarch64 image with vmType=vz requires macOS Ventura 13.3 or later.
33

44
images:
5-
- location: "https://github.com/lima-vm/alpine-lima/releases/download/v0.2.28/alpine-lima-std-3.18.0-x86_64.iso"
5+
- location: "https://github.com/lima-vm/alpine-lima/releases/download/v0.2.30/alpine-lima-std-3.18.0-x86_64.iso"
66
arch: "x86_64"
7-
digest: "sha512:0f0c844d97a2a605cdaf0c4963d88ec8b7dca4ef50b6141c589102e65d7ddc47da9536a1cffe093f3fc7530236ce0ec2c24704475f500551afa6fc83bb6ddbe0"
8-
- location: "https://github.com/lima-vm/alpine-lima/releases/download/v0.2.28/alpine-lima-std-3.18.0-aarch64.iso"
7+
digest: "sha512:c5f00210ecc355c57dd2f44b23c3976d3af20f831a618d920e64fc0a5b1f99fa41640c06efe50bbc33228bc2d39e9ba435a6f2c76c5c06315cb8f5ada9584c91"
8+
- location: "https://github.com/lima-vm/alpine-lima/releases/download/v0.2.30/alpine-lima-std-3.18.0-aarch64.iso"
99
arch: "aarch64"
10-
digest: "sha512:a8deab1e1948af1f27f808e855ab2fe5022c3a10cd6e9bb0fe007915bc5e40fe68b81ca8de28d234a7d70938669eb30ca7cb8220eda329a2303d0434c8d79d64"
10+
digest: "sha512:48ca7c15ae66fc68d86b5e25a769c273e253aaba4fd9a70a4e7f21fdc420b53829ba9fe17b730922938941639c3ed93bf5a560b6ce4252f9df3200d9f8f73280"
1111

1212
mounts:
1313
- location: "~"

pkg/cidata/cidata.TEMPLATE.d/boot/05-rosetta-volume.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

3-
set -eu
3+
set -eux -o pipefail
44

55
if [ "$LIMA_CIDATA_ROSETTA_ENABLED" != "true" ]; then
66
exit 0
77
fi
88

9+
if [ -f /etc/alpine-release ]; then
10+
rc-service qemu-binfmt stop --ifstarted
11+
fi
12+
913
mkdir -p /mnt/lima-rosetta
1014
mount -t virtiofs vz-rosetta /mnt/lima-rosetta
1115

0 commit comments

Comments
 (0)