We don't really need a lockfile, and most likely can't create one at
this point.
This commit is contained in:
parent
903f2e5041
commit
df3ac04211
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125447
@ -26,11 +26,8 @@ gbde_swap_attach()
|
||||
esac
|
||||
passphrase=`dd if=/dev/random count=1 2>/dev/null | md5 -q`
|
||||
device="${device%.bde}"
|
||||
lockfile="/var/run/${device##*/}.lock"
|
||||
gbde init "${device}" -L "${lockfile}" -P "${passphrase}" ||
|
||||
return 1
|
||||
gbde attach "${device}" -l "${lockfile}" -p "${passphrase}" ||
|
||||
return 1
|
||||
gbde init "${device}" -P "${passphrase}" || return 1
|
||||
gbde attach "${device}" -p "${passphrase}" || return 1
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,8 @@ gbde_swap_attach()
|
||||
esac
|
||||
passphrase=`dd if=/dev/random count=1 2>/dev/null | md5 -q`
|
||||
device="${device%.bde}"
|
||||
lockfile="/var/run/${device##*/}.lock"
|
||||
gbde init "${device}" -L "${lockfile}" -P "${passphrase}" ||
|
||||
return 1
|
||||
gbde attach "${device}" -l "${lockfile}" -p "${passphrase}" ||
|
||||
return 1
|
||||
gbde init "${device}" -P "${passphrase}" || return 1
|
||||
gbde attach "${device}" -p "${passphrase}" || return 1
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user