Skip to content

Commit

Permalink
Change /etc/default/grub to new method for load amd-ucode
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed May 12, 2024
1 parent da22a0e commit c8d234e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion usr/bin/grub-fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ sed -i 's|BOOT_IMAGE=/boot/vmlinuz-x86_64||g;s|misobasedir=manjaro misolabel=BIG

sed -i 's|GRUB_THEME=.*|GRUB_THEME="/boot/grub/themes/biglinux/theme.txt"|g' $*

sed -i 's|GRUB_SAVEDEFAULT=true|GRUB_SAVEDEFAULT=false\nGRUB_EARLY_INITRD_LINUX_STOCK=""|g;s|quiet quiet|quiet|g' $*
sed -i 's|GRUB_SAVEDEFAULT=true|GRUB_SAVEDEFAULT=false|g;s|quiet quiet|quiet|g' $*

if ! grep -q GRUB_EARLY_INITRD_LINUX_STOCK $*; then
echo "GRUB_EARLY_INITRD_LINUX_STOCK=''" >> $*
fi


\nGRUB_EARLY_INITRD_LINUX_STOCK=""

#remove multiples splash
while [ "$(grep -o '[^[:space:]]*splash[^[:space:]]*' $* | sed 's/\"//' | wc -w)" -gt "1" ];do
Expand Down

0 comments on commit c8d234e

Please sign in to comment.