From ea824961d1bf77ac606fd57be544082d2acd6bd8 Mon Sep 17 00:00:00 2001 From: Matthew Monaco Date: Tue, 24 Jul 2012 09:54:37 -0600 Subject: do_unlock_systemd: use mkswap -f as before This should be safe for freshly mapped swap space, especially since we check that blkid returns 2. --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 79e6ee0..fee1765 100644 --- a/functions +++ b/functions @@ -482,7 +482,7 @@ do_unlock_systemd() { if in_array swap ${options[@]}; then # create swap on the device only if no fs signature exists blkid -p "$2" &>/dev/null - if (( $? != 2 )) || ! mkswap /dev/mapper/$name >/dev/null; then + if (( $? != 2 )) || ! mkswap -f /dev/mapper/$name >/dev/null; then failed=1 fi elif in_array tmp ${options[@]}; then -- cgit v1.2.3