Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178099557
D36906.1795960355.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
867 B
Referenced Files
None
Subscribers
None
D36906.1795960355.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, Nov 29, 1:52 PM (6 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42090663
Default Alt Text
D36906.1795960355.diff (867 B)
Attached To
Mode
D36906: Tolerate missing /usr/bin/timeout in zfskeys
Attached
Detach File
Event Timeline