mirror of
				https://github.com/linka-cloud/d2vm.git
				synced 2025-10-31 01:22:27 +00:00 
			
		
		
		
	luks: implements support for Alpine
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
		| @@ -6,6 +6,9 @@ RUN apk update --no-cache && \ | ||||
|     apk add \ | ||||
|       util-linux \ | ||||
|       linux-virt \ | ||||
| {{- if .Luks }} | ||||
|       cryptsetup \ | ||||
| {{- end }} | ||||
| {{- if ge .Release.VersionID "3.17" }} | ||||
|       busybox-openrc \ | ||||
|       busybox-mdev-openrc \ | ||||
| @@ -29,3 +32,9 @@ allow-hotplug eth0\n\ | ||||
| iface eth0 inet dhcp\n\ | ||||
| ' > /etc/network/interfaces | ||||
| {{ end }} | ||||
|  | ||||
| {{- if .Luks }} | ||||
| RUN source /etc/mkinitfs/mkinitfs.conf && \ | ||||
|     echo "features=\"${features} cryptsetup\"" > /etc/mkinitfs/mkinitfs.conf && \ | ||||
|     mkinitfs $(ls /lib/modules) | ||||
| {{- end }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user