Skip to content

Commit 26345ee

Browse files
Bugfix
1 parent bf82f44 commit 26345ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/packer/provisioners/downgrade-azure-kernel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ set -e
77

88
# Install 6.8 kernel
99
sudo apt-get update
10-
sudo DEBIAN_FRONTEND=noninteractive sudo apt install linux-image-6.8.0-1015-azure linux-headers-6.8.0-1015-azure -y
10+
sudo DEBIAN_FRONTEND=noninteractive apt install linux-image-6.8.0-1015-azure linux-headers-6.8.0-1015-azure -y
1111

1212
# Update the Grub entry name
13-
sudo grub_entry_name=$(sudo grep -Po "menuentry '\KUbuntu, with Linux 6.8[^(']+" /boot/grub/grub.cfg | sort -V | head -1)
13+
grub_entry_name="$(sudo grep -Po "menuentry '\KUbuntu, with Linux 6\.8[^(']+" /boot/grub/grub.cfg | sort -V | head -1)"
1414
sudo sed -i "s/^\s*GRUB_DEFAULT=.*$/GRUB_DEFAULT='Advanced options for Ubuntu>$grub_entry_name'/" /etc/default/grub
1515
sudo update-grub
1616

0 commit comments

Comments
 (0)