Skip to content

Commit

Permalink
Check that grub config exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kmittman committed Jul 28, 2020
1 parent 2728e48 commit 8bb9580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvidia-kmod-common.spec
Expand Up @@ -88,7 +88,7 @@ checkGrubby=$?
if [ $checkGrubby -eq 0 ]; then
%{_grubby} --args='%{_dracutopts}' --remove-args='%{_dracutopts_rm}' &>/dev/null
%if 0%{?fedora} || 0%{?rhel} >= 7
if [ ! -f /run/ostree-booted ]; then
if [ ! -f /run/ostree-booted ] && [ -f %{_sysconfdir}/default/grub ]; then
. %{_sysconfdir}/default/grub
if [ -z "${GRUB_CMDLINE_LINUX}" ]; then
echo GRUB_CMDLINE_LINUX="%{_dracutopts}" >> %{_sysconfdir}/default/grub
Expand Down

0 comments on commit 8bb9580

Please sign in to comment.