update: add GRUB warning for matter-iso

This commit is contained in:
ngn 2024-08-18 22:17:43 +03:00
parent 4c73a7a217
commit bcda53b383
2 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,7 @@ Following dependencies are required for these scripts and tools:
- coreutils - coreutils
- gcc - gcc
- make - make
- GRUB - GRUB (please see matter-iso warning)
- gnupg - gnupg
- fakeroot - fakeroot
- (GNU) tar - (GNU) tar

View File

@ -75,6 +75,14 @@ check_iso_vars() {
################# #################
## main script ## ## main script ##
################# #################
if ! type "grub-mkrescue" > /dev/null; then
error "You need to install GRUB to create ISO files with grub-mkrescue"
set_indent
info "If you want to create UEFI ISO files make sure you install x64 GRUB or grub-efi"
info "If you want to create BIOS ISO files make sure you install x86 GRUB or grub-bios"
exit 1
fi
if [ "$EUID" -ne 0 ]; then if [ "$EUID" -ne 0 ]; then
error "You should run this script as root" error "You should run this script as root"
exit 1 exit 1