aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Monaco <matthew.monaco@0x01b.net>2012-07-24 09:54:37 -0600
committerMatthew Monaco <matthew.monaco@0x01b.net>2012-07-24 09:54:37 -0600
commitea824961d1bf77ac606fd57be544082d2acd6bd8 (patch)
treec36932879579f3bc793f218711cb1d9e7fa4f4c8
parent31354b0cb17eb8aae470a897014b427c87308f44 (diff)
downloadinitscripts-ea824961d1bf77ac606fd57be544082d2acd6bd8.tar.xz
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.
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
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