Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
image-builder
Commits
e28ecaf5
Commit
e28ecaf5
authored
Feb 28, 2018
by
Angus Ainslie
Browse files
docker : fix up vmdeboostrap so it works for arm64
parent
b68200e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
docker/0001-Don-t-enforce-U-EFI-on-arm64.patch
0 → 100644
View file @
e28ecaf5
>From 1d70f88536654e98c1111ed993a107fbb8f7ffb2 Mon Sep 17 00:00:00 2001
From: Michael Stapelberg <stapelberg@debian.org>
Date: Wed, 23 Nov 2016 12:36:11 +0100
Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20enforce=20(U)EFI=20on=20arm64?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The Raspberry Pi 3 uses arm64 but comes with a custom bootloader, so
there is no need for UEFI.
---
vmdebootstrap/constants.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vmdebootstrap/constants.py b/vmdebootstrap/constants.py
index 9f39415..3d807c6 100644
--- a/vmdebootstrap/constants.py
+++ b/vmdebootstrap/constants.py
@@ -46,7 +46,7 @@
arch_table = { # pylint: disable=invalid-name
'package': 'grub-efi-arm64',
'bin_package': 'grub-efi-arm64-bin',
'extra': None,
- 'exclusive': True,
+ 'exclusive': False,
'target': 'arm64-efi',
}
}
--
2.9.3
docker/Dockerfile
View file @
e28ecaf5
...
...
@@ -3,6 +3,7 @@ FROM debian:buster
ENV
DEBIAN_FRONTEND=noninteractive
COPY
./keyboard /etc/default/keyboard
COPY
./console-setup /etc/default/console-setup
COPY
./0001-Don-t-enforce-U-EFI-on-arm64.patch /tmp
# Update Software repository
RUN
apt-get update
...
...
@@ -11,11 +12,15 @@ RUN apt-get install -y console-setup
RUN
setupcon
-v
# Install
RUN
apt-get
install
-y
keyboard-configuration vmdebootstrap git
sudo
kpartx u-boot-tools make gcc gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
RUN
apt-get
install
-y
keyboard-configuration vmdebootstrap git
sudo
kpartx
RUN
apt-get
install
-y
u-boot-tools make gcc gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu vim
# Volume configuration
VOLUME
["/src"]
# fix vmebootstrap for arm64 on embedded
RUN
cd
/usr/lib/python2.7/dist-packages/vmdebootstrap
&&
patch
-p2
< /tmp/0001-Don-t-enforce-U-EFI-on-arm64.patch
RUN
useradd
-ms
/bin/bash purism
-p
purism
-G
sudo
#USER purism
CMD
["bash"]
...
...
Zoltan Gyarmati
@zgyarmati
mentioned in issue
#29
·
Jan 03, 2019
mentioned in issue
#29
mentioned in issue #29
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment