Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108564709
D44797.id137037.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
849 B
Referenced Files
None
Subscribers
None
D44797.id137037.diff
View Options
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -673,15 +673,11 @@
fi
# Most modules are in /boot/modules but we should actually look
- # in every path configured in module_path
- search_files="/boot/defaults/loader.conf /boot/loader.conf"
- pattern=$(grep -shE '^module_path=' ${search_files} |
- tail -1 |
- cut -f2 -d\" |
- tr ";" "|")
+ # in every module_path passed to the kernel:
+ pattern=$(sysctl kern.module_path | cut -f2 -d\" | tr ";" "|")
if [ -z "${pattern}" ]; then
- # Not having module_path in loader.conf is probably an error.
+ # Not having module_path in kern.module_path is probably wrong.
# Check at least the most common path
pattern="/boot/modules"
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 9:44 AM (2 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16193747
Default Alt Text
D44797.id137037.diff (849 B)
Attached To
Mode
D44797: freebsd-update(8): Use kern.module_path
Attached
Detach File
Event Timeline
Log In to Comment