Skip to content

Commit 0c49e02

Browse files
maxbrunetjohnstcn
andauthored
fix(remount): correct usrLibMultiarchDir value for 32-bit ARM (#259)
Co-authored-by: Cian Johnston <[email protected]>
1 parent 017ff92 commit 0c49e02

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/ebutil/libs_arm.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
package ebutil
44

5-
// Based on a 32-bit Raspbian system.
6-
const usrLibMultiarchDir = "/usr/lib/arm-linux-gnueabihf"
5+
// This constant is for 64-bit systems. 32-bit ARM is not supported.
6+
// If ever it becomes supported, it should be handled with a `usrLib32MultiarchDir` constant.
7+
const usrLibMultiarchDir = "/var/empty"

internal/ebutil/remount_internal_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818

1919
var expectedLibMultiarchDir = map[string]string{
2020
"amd64": "/usr/lib/x86_64-linux-gnu",
21+
"arm": "/var/empty",
2122
"arm64": "/usr/lib/aarch64-linux-gnu",
2223
}
2324

0 commit comments

Comments
 (0)