Skip to content

Commit

Permalink
fix: make function ignore_msrs_always work
Browse files Browse the repository at this point in the history
With the previous version the file was never written if it not existed before, logic bug.
  • Loading branch information
Gitsarry authored and flexiondotorg committed Aug 27, 2024
1 parent 35f8e93 commit 18cdda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function ignore_msrs_always() {
# Make sure the host has /etc/modprobe.d
if [ -d /etc/modprobe.d ]; then
# Skip if ignore_msrs is already enabled, assumes initramfs has been rebuilt
if grep -lq 'ignore_msrs=Y' /etc/modprobe.d/kvm-quickemu.conf >/dev/null 2>&1; then
if ! grep -lq 'ignore_msrs=Y' /etc/modprobe.d/kvm-quickemu.conf >/dev/null 2>&1; then
echo "options kvm ignore_msrs=Y" | sudo tee /etc/modprobe.d/kvm-quickemu.conf
sudo update-initramfs -k all -u
fi
Expand Down

0 comments on commit 18cdda2

Please sign in to comment.