From: Raphaƫl Gertz <git@rapsys.eu>
Date: Mon, 24 Sep 2018 14:36:11 +0000 (+0200)
Subject: Force cryptsetup inclusion in initrd
X-Git-Tag: 2.4.38-6~14
X-Git-Url: https://git.rapsys.eu/ihttpd/commitdiff_plain/bf87896001fe512ef0919793dafb4cb9cfe100d1

Force cryptsetup inclusion in initrd
---

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