Blame SOURCES/ecryptfs-utils-75-nocryptdisks.patch

9471b7
diff -up ecryptfs-utils-108/src/utils/ecryptfs-setup-swap.nocryptdisks ecryptfs-utils-108/src/utils/ecryptfs-setup-swap
9471b7
--- ecryptfs-utils-108/src/utils/ecryptfs-setup-swap.nocryptdisks	2015-08-04 17:41:39.000000000 +0200
9471b7
+++ ecryptfs-utils-108/src/utils/ecryptfs-setup-swap	2015-08-11 14:43:51.787842611 +0200
Michal Hlavinka db6652
@@ -37,23 +37,20 @@ warn() {
Michal Hlavinka db6652
 usage() {
Michal Hlavinka db6652
 	echo
Michal Hlavinka db6652
 	echo `gettext "Usage:"`
Michal Hlavinka db6652
-	echo "  $0 [-f|--force] [-n|--no-reload]"
Michal Hlavinka db6652
+	echo "  $0 [-f|--force]"
Michal Hlavinka db6652
 	echo
Michal Hlavinka db6652
 	exit 1
Michal Hlavinka db6652
 }
Michal Hlavinka db6652
 
Michal Hlavinka db6652
 # Handle command line options
Michal Hlavinka db6652
 FORCE=0
Michal Hlavinka db6652
+NO_RELOAD=1
Michal Hlavinka db6652
 while [ ! -z "$1" ]; do
Michal Hlavinka db6652
 	case "$1" in
Michal Hlavinka db6652
 		-f|--force)
Michal Hlavinka db6652
 			FORCE=1
Michal Hlavinka db6652
 			shift 1
Michal Hlavinka db6652
 		;;
Michal Hlavinka db6652
-		-n|--no-reload)
Michal Hlavinka db6652
-			NO_RELOAD=1
Michal Hlavinka db6652
-			shift 1
Michal Hlavinka db6652
-		;;
Michal Hlavinka db6652
 		*)
Michal Hlavinka db6652
 			usage
Michal Hlavinka db6652
 		;;
9471b7
@@ -188,7 +185,6 @@ for swap in $swaps; do
Michal Hlavinka db6652
 	# Add fstab entry
Michal Hlavinka c3bb6c
 	echo "/dev/mapper/cryptswap$i none swap sw 0 0" >> /etc/fstab
Michal Hlavinka c3bb6c
 done
Michal Hlavinka 7beee0
-
Michal Hlavinka db6652
 if [ "$NO_RELOAD" != 1 ]; then
Michal Hlavinka db6652
 	# Turn swap off
Michal Hlavinka db6652
 	swapoff -a
9471b7
@@ -201,3 +197,4 @@ if [ "$NO_RELOAD" != 1 ]; then
Michal Hlavinka db6652
 fi
Michal Hlavinka db6652
 
0d13c9
 info `gettext "Successfully encrypted swap!"`
Michal Hlavinka 7beee0
+info "This will take effect after reboot"