Permalink
Browse files

Load kernel modules before jail start

  • Loading branch information...
1 parent 4c7630d commit 83f6817e313c8931b64e21681df4c77af4e3582b @william-gr william-gr committed Nov 8, 2013
Showing with 18 additions and 0 deletions.
  1. +18 −0 nanobsd/Files/etc/rc.d/ix-jail
@@ -98,9 +98,27 @@
jails_start()
{
+
+ local IFS="|"
+ local module
local jails="$*"
local res=0
+
+ ${FREENAS_SQLITE_CMD} ${FREENAS_CONFIG} "
+ SELECT
+ module
+ FROM
+ plugins_kmod
+
+ ORDER BY
+ plugin_id,order
+ " | \
+ while read -r module
+ do
+ /sbin/kldload ${module} > /dev/null 2>&1
+ done
+
if [ -z "${jails}" ]
then
jails=$(jail_get|awk '{ print $1 }')

0 comments on commit 83f6817

Please sign in to comment.