-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ARCH=armv7l version of iso #108
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,10 +177,12 @@ fi | |
mkdir -p "${tmp}/proc/sys/fs/binfmt_misc" | ||
rc_add procfs default | ||
|
||
if [ "${LIMA_INSTALL_BINFMT_MISC}" == "true" ]; then | ||
if [ "${LIMA_INSTALL_BINFMT_MISC}" == "true" ] && [ "$(uname -m)" != "armv7l" ]; then | ||
# install qemu-aarch64 on x86_64 and vice versa | ||
OTHERARCH=aarch64 | ||
if [ "$(uname -m)" == "${OTHERARCH}" ]; then | ||
if [ "$(uname -m)" == "x86_64" ]; then | ||
OTHERARCH=aarch64 | ||
fi | ||
if [ "$(uname -m)" == "aarch64" ]; then | ||
OTHERARCH=x86_64 | ||
fi | ||
|
||
|
@@ -223,10 +225,15 @@ fi | |
|
||
if [ "${LIMA_INSTALL_CNI_PLUGIN_FLANNEL}" == "true" ]; then | ||
echo "cni-plugin-flannel" >> "$tmp"/etc/apk/world | ||
ARCH=amd64 | ||
if [ "$(uname -m)" == "x86_64" ]; then | ||
ARCH=amd64 | ||
fi | ||
if [ "$(uname -m)" == "aarch64" ]; then | ||
ARCH=arm64 | ||
fi | ||
if [ "$(uname -m)" == "armv7l" ]; then | ||
ARCH=armv7 | ||
fi | ||
Comment on lines
-226
to
+236
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we set
But that has since been removed because the |
||
fi | ||
|
||
if [ "${LIMA_INSTALL_CURL}" == "true" ]; then | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,14 @@ case "$(uname)" in | |
Darwin) display=cocoa;; | ||
Linux) display=gtk;; | ||
esac | ||
case "${ARCH}" in | ||
x86_64) bios=true;; | ||
*) bios=false;; | ||
esac | ||
Comment on lines
+8
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can drop setting |
||
cat <<EOF >"${EDITION}.yaml" | ||
arch: "${ARCH}" | ||
images: | ||
- location: "${PWD}/iso/alpine-lima-${EDITION}-${ALPINE_VERSION}-${ARCH}.iso" | ||
- location: "${PWD}/iso/alpine-lima-${EDITION}-${ALPINE_VERSION}-${ALPINE_ARCH}.iso" | ||
arch: "${ARCH}" | ||
mounts: | ||
- location: "~" | ||
|
@@ -18,7 +22,7 @@ mounts: | |
ssh: | ||
localPort: 40022 | ||
firmware: | ||
legacyBIOS: true | ||
legacyBIOS: $bios | ||
video: | ||
display: $display | ||
containerd: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARCH_ALIAS
doesn't seem to be used bybuild.sh
anymore: