From 390f275a59296e25b9f4f000df1398b564a2146c Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 26 Dec 2021 22:27:28 -0500 Subject: [PATCH 1/2] Change theme installation directory Resolves issue when installing to encrypted disk where grub cannot access /usr partition. Errors produced by previous commit: error: no such device: xxxxx-xxxxxx-xxxxx-xxxxxx error: no server is specified --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 8559ddf..aa3322f 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,8 @@ # * @link https://youtu.be/BAyzHP1Cqb0 # */ -THEME_DIR='/usr/share/grub/themes' +#THEME_DIR='/usr/share/grub/themes' +THEME_DIR='/boot/grub/themes' THEME_NAME='' function echo_title() { echo -ne "\033[1;44;37m${*}\033[0m\n"; } From 89ee9eab70dee58696f4e6f1ed9fade429e7c28d Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 26 Dec 2021 22:30:04 -0500 Subject: [PATCH 2/2] 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() {