Page MenuHomeFreeBSD

D36906.diff
No OneTemporary

D36906.diff

Index: libexec/rc/rc.d/zfskeys
===================================================================
--- libexec/rc/rc.d/zfskeys
+++ libexec/rc/rc.d/zfskeys
@@ -50,7 +50,7 @@
echo "Key already loaded for $fs."
elif keytest=$(zfs load-key -n -L "$kl" "$fs" 2>&1); then
echo "Loading key for $fs from $kl.."
- if ! keyload=$(timeout $zfskeys_timeout zfs load-key -L "$kl" "$fs" 2>&1) ; then
+ if ! keyload=$($timeout zfs load-key -L "$kl" "$fs" 2>&1) ; then
if [ $? -eq 124 ]; then
echo "Timed out loading key from $kl for $fs"
else
@@ -114,6 +114,12 @@
done
}
+if [ -x '/usr/bin/timeout' ]; then
+ timeout="/usr/bin/timeout $zfskeys_timeout"
+else
+ timeout=''
+fi
+
zfskeys_args=$(encode_args "$@")
load_rc_config $name
run_rc_command "$1"

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 21, 2:28 PM (9 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27114242
Default Alt Text
D36906.diff (867 B)

Event Timeline