Load linux kernel extension on boot?

Status
Not open for further replies.

josch

Cadet
Joined
Aug 7, 2014
Messages
6
Hi,
what is the best way to load the linux extension on boot?
I have one jail that has the SpiderOak Linux Client installed.
That should run on boot, but it can't work because linux support is not loaded.
It works if I setup a linux jail, but I don't need a linux jail.

At the moment, I just manually run "kldload linux" after every reboot and then start SpiderOak in the jail.
What would be the best way to automate this, if possible even surviving FreeNAS upgrades?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
If you want the setting to survive reboots, you might be able to add the following line to /conf/base/etc/rc.conf

Code:
linux_enable="YES"


I have not tried it myself and so someone with more experience with such things should weigh in. My guess is that making it survive updates is not practical.
 

josch

Cadet
Joined
Aug 7, 2014
Messages
6
Thanks!
It works.
I probably have to do it every time I update, but at least everything will come up on unexpected reboots (like power failure)
The manual reboots in the last months where all when I did an upgrade.
 
Status
Not open for further replies.
Top