diff --git a/SOURCES/grubby-bls b/SOURCES/grubby-bls
index 5b428a0..1a89d80 100755
--- a/SOURCES/grubby-bls
+++ b/SOURCES/grubby-bls
@@ -235,7 +235,7 @@ get_bls_args() {
     local opts=(${args})
 
     for opt in ${opts[*]}; do
-        if [[ $opt =~ ^\$ ]]; then
+        if [[ $opt = "\$kernelopts" ]]; then
             value="$(expand_var $opt)"
             args="$(echo ${args} | sed -e "s/${opt}/${value}/")"
         fi
diff --git a/SPECS/grubby.spec b/SPECS/grubby.spec
index e26c6b1..aeeeb6f 100644
--- a/SPECS/grubby.spec
+++ b/SPECS/grubby.spec
@@ -1,6 +1,6 @@
 Name: grubby
 Version: 8.40
-Release: 41%{?dist}
+Release: 42%{?dist}
 Summary: Command line tool for updating BootLoaderSpec files
 License: GPLv2+
 URL: https://github.com/rhinstaller/grubby
@@ -169,6 +169,10 @@ current boot environment.
 %{_mandir}/man8/*.8*
 
 %changelog
+* Wed Jun 09 2021 Javier Martinez Canillas <javierm@redhat.com> - 8.40-42
+- grubby-bls: expand only the kernelopts variable
+  Resolves: rhbz#1819666
+
 * Thu May 07 2020 Javier Martinez Canillas <javierm@redhat.com> - 8.40-41
 - grubby-bls: only attempt to update the cmdline if was already set
   Related: rhbz#1152027