Skip to content

Commit

Permalink
spec: fix detecting default kernel flavor
Browse files Browse the repository at this point in the history
%{NAME} needs escaping to not be evaluated at the package build time.
  • Loading branch information
marmarek committed May 18, 2021
1 parent abb626f commit dd91e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ Qubes domU kernel.

current_default="$(qubes-prefs default-kernel)"
current_default_path="/var/lib/qubes/vm-kernels/$current_default"
current_default_package="$(rpm --qf '%{NAME}' -qf "$current_default_path")"
current_default_package="$(rpm --qf '%%{NAME}' -qf "$current_default_path")"
if [ "$current_default_package" = "%{name}-qubes-vm" ]; then
# Set kernel as default VM kernel if we are the default package.

Expand Down

0 comments on commit dd91e02

Please sign in to comment.