From bf87896001fe512ef0919793dafb4cb9cfe100d1 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Rapha=C3=ABl=20Gertz?= <git@rapsys.eu>
Date: Mon, 24 Sep 2018 16:36:11 +0200
Subject: [PATCH] Force cryptsetup inclusion in initrd

---
 SOURCES/ihttpd.module-setup | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/SOURCES/ihttpd.module-setup b/SOURCES/ihttpd.module-setup
index 62690e0..be1c658 100644
--- a/SOURCES/ihttpd.module-setup
+++ b/SOURCES/ihttpd.module-setup
@@ -63,6 +63,7 @@ install() {
 		/var/www/html
 
 	# Install all files
+	#XXX: force cryptsetup install until systemd-cryptsetup implement a method that don't rely on password ending with \0
 	inst_multiple \
 		/etc/hosts \
 		/etc/localtime \
@@ -76,9 +77,10 @@ install() {
 		$systemdsystemunitdir/systemd-tmpfiles-setup.service \
 		$systemdutildir/systemd-resolved \
 		$tmpfilesdir/ihttpd.conf \
+		'/sbin/cryptsetup' \
 		'/usr/bin/false' \
 		'/usr/bin/reboot' \
-		/usr/sbin/ihttpd
+		'/usr/sbin/ihttpd'
 
 	# Install favicon
 	inst_simple -o /var/www/html/favicon.ico
-- 
2.41.3