Commit e28ecaf5 authored by Angus Ainslie's avatar Angus Ainslie

docker : fix up vmdeboostrap so it works for arm64

parent b68200e3
>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
......@@ -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"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment