Skip to content

Commit

Permalink
Merge pull request #1956 from phillxnet/1955_remove_grubby_dependency…
Browse files Browse the repository at this point in the history
…_for_kernel_version_reporting

remove grubby dependency for kernel version reporting. Fixes #1955
  • Loading branch information
schakrava authored Aug 31, 2018
2 parents c44f758 + 5ffb973 commit e2bc81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rockstor/system/osi.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def def_kernel():

def kernel_info(supported_version):
uname = os.uname()
if (uname[2] != supported_version):
if uname[2] != supported_version and os.path.isfile(GRUBBY):
e_msg = ('You are running an unsupported kernel(%s). Some features '
'may not work properly.' % uname[2])
carg = '--set-default=/boot/vmlinuz-{}'.format(supported_version)
Expand Down

0 comments on commit e2bc81b

Please sign in to comment.