aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-07-24 16:40:07 (GMT)
committerTom Gundersen <teg@jklm.no>2012-07-24 16:40:07 (GMT)
commit6803ceac614d287fad22a9da7291b9deedf59e04 (patch)
tree976f2b0304f5cd0cd06506a8f474f881290b69b0
parent13ca7f028ac775773a6685966d0faeee5cc55a9d (diff)
parentea824961d1bf77ac606fd57be544082d2acd6bd8 (diff)
downloadinitscripts-6803ceac614d287fad22a9da7291b9deedf59e04.tar.xz
Merge remote-tracking branch 'mmonaco/master'
-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