From 89ee9eab70dee58696f4e6f1ed9fade429e7c28d Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 26 Dec 2021 22:30:04 -0500 Subject: [PATCH] Adds set graphics mode to auto Fixes issue where if GRUB_GFXMODE is incorrect, themes do not display --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.sh b/install.sh index 8559ddf..84dd865 100755 --- a/install.sh +++ b/install.sh @@ -123,6 +123,16 @@ function config_grub() { echo_info "echo \"GRUB_THEME=\"${THEME_DIR}/${THEME_NAME}/theme.txt\"\" >> /etc/default/grub" echo "GRUB_THEME=\"${THEME_DIR}/${THEME_NAME}/theme.txt\"" >> /etc/default/grub + + #-------------------------------------------------- + + echo_primary 'Setting grub graphics mode to auto' + # remove default timeout if any + echo_info "sed -i '/GRUB_GFXMODE=/d' /etc/default/grub" + sed -i '/GRUB_GFXMODE=/d' /etc/default/grub + + echo_info "echo 'GRUB_GFXMODE=\"auto\"' >> /etc/default/grub" + echo 'GRUB_GFXMODE="auto"' >> /etc/default/grub } function update_grub() {