mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 09:36:14 +01:00
Fixed #236
This commit is contained in:
parent
24ac05a101
commit
42c232dfb4
@ -97,7 +97,7 @@ generate() {
|
||||
prompt -i "\n Installing ${theme} ${icon} ${screen} theme..."
|
||||
|
||||
# Don't preserve ownership because the owner will be root, and that causes the script to crash if it is ran from terminal by sudo
|
||||
cp -a --no-preserve=ownership "${REO_DIR}/common/"{*.png,*.pf2} "${THEME_DIR}/${theme}"
|
||||
cp -a --no-preserve=ownership "${REO_DIR}/common/"*.pf2 "${THEME_DIR}/${theme}"
|
||||
cp -a --no-preserve=ownership "${REO_DIR}/config/theme-${screen}.txt" "${THEME_DIR}/${theme}/theme.txt"
|
||||
cp -a --no-preserve=ownership "${REO_DIR}/backgrounds/${screen}/background-${theme}.jpg" "${THEME_DIR}/${theme}/background.jpg"
|
||||
|
||||
@ -402,9 +402,9 @@ updating_grub() {
|
||||
fi
|
||||
|
||||
if [[ -f /boot/grub2/grub.cfg && -f /boot/efi/EFI/fedora/grub.cfg ]]; then
|
||||
prompt -w "Under EFI, GRUB2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg,\n however the postinstall script of grub2-common installs a small shim which chains to the standard configuration at /boot/grub2/grub.cfg which is generated above.\n To reset this shim to defaults, delete the existing /boot/efi/EFI/fedora/grub.cfg and then reinstall grub2-common."
|
||||
prompt -w "\n Under EFI, GRUB2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg,\n however the postinstall script of grub2-common installs a small shim which chains to the standard configuration at /boot/grub2/grub.cfg which is generated above.\n To reset this shim to defaults, delete the existing /boot/efi/EFI/fedora/grub.cfg and then reinstall grub2-common."
|
||||
|
||||
prompt -i "sudo rm -f /boot/efi/EFI/fedora/grub.cfg"
|
||||
prompt -i "\n sudo rm -f /boot/efi/EFI/fedora/grub.cfg"
|
||||
prompt -i "sudo dnf reinstall grub2-common"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user