logo

grub-nomagic-scripts

Automagic-free replacement scripts for GRUB grub-mkconfig and grub-install.git clone https://hacktivis.me/git/grub-nomagic-scripts.git
commit: 7e2fba5f91b50807ecb19e7ad2d40f4bd0d185b2
parent 494dc05140063d13d3336fc24f1b50416a277e74
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  7 Apr 2024 08:51:36 +0200

grub-bios-install: Install grub *.mod files

Diffstat:

Mgrub-bios-install.sh2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/grub-bios-install.sh b/grub-bios-install.sh @@ -20,6 +20,8 @@ command -v lsblk || die 'grub-bios-install: Error, command not found: lsblk' load_cfg ~/.config/grub-nomagic/env +rsync -rav --exclude '*.module' /usr/lib/grub/i386-pc /boot/grub/ || die "grub-bios-install: Failed to copy grub modules from current installation" + test -z "${DISK}" && die '$DISK needs to be set to a disk blockdevice, for example: /dev/sda' test -z "${ROOT_BLOCK}" && die '$ROOT_BLOCK needs to be set to your root filesystem blockdevice, for example: /dev/sda2'