Skip to content

Commit e3f0b39

Browse files
committed
vm: support binfmt i386
Signed-off-by: Abiola Ibrahim <[email protected]>
1 parent babfdde commit e3f0b39

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/core.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
)
1616

1717
const (
18-
version = "v0.6.0-2" // version of colima-core to use.
19-
limaVersion = "v0.18.0" // minimum Lima version supported
18+
version = "v0.7.6" // version of colima-core to use.
19+
limaVersion = "v0.18.0" // minimum Lima version supported
2020
baseURL = "https://github.com/abiosoft/colima-core/releases/download/" + version + "/"
2121
)
2222

@@ -40,7 +40,7 @@ func SetupBinfmt(host hostActions, guest guestActions, arch environment.Arch) er
4040
}
4141

4242
install := func() error {
43-
if err := guest.Run("sh", "-c", "sudo QEMU_PRESERVE_ARGV0=1 /usr/bin/binfmt --install "+qemuArch.GoArch()); err != nil {
43+
if err := guest.Run("sh", "-c", "sudo QEMU_PRESERVE_ARGV0=1 /usr/bin/binfmt --install 386,"+qemuArch.GoArch()); err != nil {
4444
return fmt.Errorf("error installing binfmt: %w", err)
4545
}
4646
return nil
@@ -55,8 +55,8 @@ func SetupBinfmt(host hostActions, guest guestActions, arch environment.Arch) er
5555
url := baseURL + "binfmt-" + arch.Value().GoArch() + ".tar.gz"
5656
dest := "/tmp/binfmt.tar.gz"
5757
if err := downloader.DownloadToGuest(host, guest, downloader.Request{
58-
URL: url,
59-
SHA: downloadSha(url),
58+
URL: url,
59+
SHA: downloadSha(url),
6060
}, dest); err != nil {
6161
return fmt.Errorf("error downloading binfmt: %w", err)
6262
}

0 commit comments

Comments
 (0)