62 lines
2.1 KiB
Markdown
62 lines
2.1 KiB
Markdown
# GRUB2 theme and menu for PARAVIS Flash
|
|
|
|
Source files and build scripts for the PARAVIS GRUB2 boot menu (Legacy BIOS and
|
|
UEFI), plus the PSD sources of the theme artwork.
|
|
|
|
## Layout
|
|
|
|
```
|
|
src/ menu and theme sources
|
|
build_all.py builds the theme from the PSD sources
|
|
gen_menu.py generates menu/*.cfg
|
|
grub.cfg main GRUB2 menu (template)
|
|
menu/ submenu sources (linux, msdart, strelec, utilits)
|
|
make-*.ps1 artwork helpers (calibration, selection, preview)
|
|
theme-fix-.../ intermediate theme variants
|
|
theme/ ready-to-use theme assets
|
|
main/ main menu: background, sel_*.png, sep_cover.png,
|
|
theme.txt, theme_bios.txt, theme_uefi.txt,
|
|
paravis.pf2 (Montserrat), golos-text-20.pf2
|
|
linux/ msdart/ strelec/ utilits/
|
|
PSD/ layered PSD sources of the backgrounds
|
|
licenses/ OFL texts for Montserrat and Golos Text
|
|
```
|
|
|
|
## Build
|
|
|
|
The scripts were used from Linux/WSL and Windows PowerShell. Paths in the
|
|
scripts are examples (`/path/to/pf`, `C:\PF`); set your own root before use.
|
|
|
|
```sh
|
|
# regenerate the GRUB font (Golos Text Medium -> 20 px)
|
|
grub-mkfont -s 20 -a -n "Golos Text" -o golos-text-20.pf2 GolosText-Medium.ttf
|
|
```
|
|
|
|
`build_all.py` needs Python 3 with `psd-tools` and `Pillow`. `make-*.ps1`
|
|
helpers need PowerShell and the PSD sources.
|
|
|
|
The theme is consumed by GRUB2 as:
|
|
|
|
```
|
|
loadfont ($root)/efi/Paravis/Boot/grub2/theme/golos-text-20.pf2
|
|
set theme=($root)/efi/Paravis/Boot/grub2/theme/main/theme_uefi.txt
|
|
```
|
|
|
|
## Fonts
|
|
|
|
- `theme/main/golos-text-20.pf2` — Golos Text Medium, SIL OFL 1.1
|
|
(`licenses/OFL-GolosText.txt`).
|
|
- `theme/main/paravis.pf2` — Montserrat, SIL OFL 1.1
|
|
(`licenses/OFL-Montserrat.txt`), kept for compatibility.
|
|
|
|
## License
|
|
|
|
The scripts and menu sources are GPL-3.0-or-later. The fonts are SIL OFL 1.1. The theme
|
|
artwork is Paravis artwork.
|
|
|
|
## Not included
|
|
|
|
- Secure Boot keys, certificates and signed EFI binaries;
|
|
- Microsoft font derivatives (`tahoma*.pf2`, `segoeui18.pf2`);
|
|
- third-party binaries and bootable images.
|