Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140125945
D36906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
867 B
Referenced Files
None
Subscribers
None
D36906.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D36906: Tolerate missing /usr/bin/timeout in zfskeys
Attached
Detach File
Event Timeline
Log In to Comment