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

luks: implements support for debian like distibutions

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2023-02-23 20:13:37 +01:00
committed by Adphi
parent 3ec9bdfb01
commit 2f34e19636
3 changed files with 21 additions and 7 deletions

View File

@ -5,7 +5,7 @@ USER root
RUN apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
{{- if .Luks }}
cryptsetup \
cryptsetup-initramfs \
{{- end }}
linux-image-amd64
@ -44,3 +44,8 @@ allow-hotplug eth0\n\
iface eth0 inet dhcp\n\
' > /etc/network/interfaces
{{ end }}
{{- if .Luks }}
RUN update-initramfs -u -v
{{- end }}

View File

@ -7,7 +7,7 @@ RUN apt-get update -y && \
linux-image-virtual \
initramfs-tools \
{{- if .Luks }}
cryptsetup \
cryptsetup-initramfs \
{{- end }}
systemd-sysv \
systemd \
@ -43,3 +43,7 @@ allow-hotplug eth0\n\
iface eth0 inet dhcp\n\
' > /etc/network/interfaces
{{ end }}
{{- if .Luks }}
RUN update-initramfs -u -v
{{- end }}