Blame ecryptfs-utils-87-authconfig.patch

9471b7
diff -up ecryptfs-utils-108/src/utils/ecryptfs-migrate-home.authconfig ecryptfs-utils-108/src/utils/ecryptfs-migrate-home
9471b7
--- ecryptfs-utils-108/src/utils/ecryptfs-migrate-home.authconfig	2015-02-10 17:59:34.000000000 +0100
9471b7
+++ ecryptfs-utils-108/src/utils/ecryptfs-migrate-home	2015-08-11 14:43:56.758829517 +0200
9f9461
@@ -98,6 +98,11 @@ sanity_check () {
9f9461
 	if ! which rsync >/dev/null 2>&1; then
9f9461
 		error "Please install the rsync package."
9f9461
 	fi
9f9461
+	# Check for ecryptfs pam module
9f9461
+	if ! grep -q ecryptfs /etc/pam.d/postlogin
9f9461
+	then
9f9461
+		error "You must enable ecryptfs pam module first. It can be enabled by using: authconfig --enableecryptfs --updateall"
9f9461
+	fi
9f9461
 	# Check free space: make sure we have sufficient disk space
9f9461
 	# available. To make a full copy, we will need at least 2.5x the
9f9461
 	# disk usage of the target home directory.