I also was getting an error 500 when trying to update the kernel.
I had to change the following lines in /var/www/fog/lib/fog/fogpage.class.php around line 2746 to the following.
protected static function secureBootStagingDir()
{
// Patch: Define FOG_BASE_DIR if the core failed to load it
if (!defined(‘FOG_BASE_DIR’)) {
define(‘FOG_BASE_DIR’, ‘/opt/fog’);
}
// GH-850: the base path is installer-driven, so these must be derived
// from FOG_BASE_DIR rather than written as /opt/fog literals. The
// installer places both under $fogprogramdir; hardcoding the default
// meant that on a server installed anywhere else this returned '' and
// signing silently never happened -- leaving Secure Boot clients with
// an unsigned kernel and nothing on the server to say why.
$helper = FOG_BASE_DIR . DS . 'bin' . DS . 'fog-sign-kernel';
$stagedir = FOG_BASE_DIR . DS . 'secureboot-staging';
if (!is_executable($helper) || !is_dir($stagedir)) {
return '';
}
return $stagedir;
}
Mat
