Skip to content

Commit

Permalink
fixup timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Jan 4, 2025
1 parent 512d436 commit 87644a0
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,9 @@ touch /etc/bazzite/fixups/snapper_cleanup

if [ ! -f /etc/bazzite/fixups/grub_fixup ]; then
# Grub settings
# Grub hidden timeout should be 2 if it does not exist
# So that when grub is hidden it exits quicker
if [ -z $(grep "GRUB_HIDDEN_TIMEOUT=" /etc/default/grub) ]; then
echo "Setting GRUB_HIDDEN_TIMEOUT=2"
echo "GRUB_HIDDEN_TIMEOUT=2" >> /etc/default/grub
# Lower grub timeout to 3 seconds if it exists
if [ -n $(grep "GRUB_TIMEOUT=5" /etc/default/grub) ]; then
sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=3/' /etc/default/grub
fi

# Autohide grub menu if boot is successful
Expand Down

0 comments on commit 87644a0

Please sign in to comment.