diff options
author | Matthew Monaco <matthew.monaco@0x01b.net> | 2012-07-24 09:54:37 -0600 |
---|---|---|
committer | Matthew Monaco <matthew.monaco@0x01b.net> | 2012-07-24 09:54:37 -0600 |
commit | ea824961d1bf77ac606fd57be544082d2acd6bd8 (patch) | |
tree | c36932879579f3bc793f218711cb1d9e7fa4f4c8 | |
parent | 31354b0cb17eb8aae470a897014b427c87308f44 (diff) |
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-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |