2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2025-06-23 13:52:26 +00:00

add grub support

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2023-09-11 15:42:06 +02:00
parent a003e176f5
commit 4e533b8044
17 changed files with 157 additions and 17 deletions

View File

@ -36,3 +36,7 @@ RUN apk add --no-cache cryptsetup && \
echo "features=\"${features} cryptsetup\"" > /etc/mkinitfs/mkinitfs.conf && \
mkinitfs $(ls /lib/modules)
{{- end }}
{{- if .Grub }} \
RUN apk add --no-cache grub grub-bios
{{- end }}

View File

@ -11,6 +11,9 @@ RUN yum install -y \
kernel \
systemd \
NetworkManager \
{{- if .Grub }}
grub2 \
{{- end }}
e2fsprogs \
sudo && \
systemctl enable NetworkManager && \

View File

@ -9,6 +9,9 @@ RUN apt-get -y update && \
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
systemd-sysv \
systemd \
{{- if .Grub }}
grub2 \
{{- end }}
dbus \
iproute2 \
isc-dhcp-client \

View File

@ -8,6 +8,9 @@ RUN apt-get update -y && \
initramfs-tools \
systemd-sysv \
systemd \
{{- if .Grub }}
grub2 \
{{- end }}
dbus \
isc-dhcp-client \
iproute2 \