Cannot change Jail kern.securelevel

nadamson

Cadet
Joined
Jan 22, 2022
Messages
2
I've run into an issue when I attempted to upgrade Nextcloud plugin to 23.0.0. After the upgrade completed, Nextcloud wouldn't run.
After some investigating, it looks as if mysql didn't get installed. I've attempted to install mysql manually but the release version on my jail is 12.2-RELEASE.p12 and from looking around the newer version of mysql will not run on this release.
Naturally, I attempted to upgrade to 12.3 but cannot as the kern.securelevel is set to 2 and will not allow any upgrades to happen.

I have added kern_securelevel="-1" to /etc/rc.conf and have tried kern_securelevel_enable="YES" and kern_securelevel_enable="NO" but it is still running at level 2.

Any ideas?
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
The kern.securelevel for a jail may be initialized by/from the host environment, so if it is being spun up with a securelevel of 2, you will not be able to lower it within the jail. I don't know if that's what's happening to you though, as I don't use FreeNAS jails.
 
Top