Live Scan Grub Menu
Go to file
Marc Beninca 579067d5d6
package
2024-03-15 10:27:28 +01:00
images readme,to_ram 2023-11-21 14:29:08 +01:00
live static/alma 2024-02-09 19:34:48 +01:00
lsgm package 2024-03-15 10:27:28 +01:00
readme main,static,sys 2023-11-30 13:34:21 +01:00
.gitignore ignore dist 2024-02-17 02:20:24 +01:00
build.mod lspci 2023-12-16 00:20:09 +01:00
build.sh fix 2023-12-16 01:12:51 +01:00
doc.py main → init 2023-10-17 10:01:56 +02:00
esp.py main → init 2023-10-17 10:01:56 +02:00
grub.cfg.sh main,static,sys 2023-11-30 13:34:21 +01:00
grubx64.efi.signed.sh grub_shigned 2023-11-12 19:05:36 +01:00
license.md fix license 2024-02-19 21:58:46 +01:00
pyproject.toml requires 2024-02-17 10:33:38 +01:00
readme.md main,static,sys 2023-11-30 13:34:21 +01:00
todo.gv probe_ 2023-09-30 14:46:03 +02:00
todo.svg probe_ 2023-09-30 14:46:03 +02:00

readme.md

Live Scan Grub Menu

Build an ESP File System including:

  • standalone EFI & BIOS GRUB images
  • boot time dynamic GRUB menu

Dependencies

  • grub-common

    • grub-mkimage
  • grub-efi-amd64-bin

    • x86_64-efi
  • grub-efi-amd64-signed

    • grubx64.efi.signed
  • grub-pc-bin

    • i386-pc
      • boot.img
      • grub-bios-setup
  • shim-signed

    • shimx64.efi.signed
  • grub-theme-breeze

    • themes/breeze
  • grub-theme-starfield

    • themes/starfield

Project

├── __init__.py
├── __main__.py
├── build.mod
├── build.sh
├── doc.py
├── esp.py
├── grub.cfg.sh
├── grubx64.efi.signed.sh
├── images
│  └── nightly.png
├── license.md
├── live
│  ├── menu
│  │  ├── cmd.sh
│  │  ├── env.sh
│  │  ├── gfx.sh
│  │  ├── main.sh
│  │  ├── pause.sh
│  │  ├── scan.sh
│  │  ├── set.sh
│  │  └── static.sh
│  └── source
│     ├── boot.sh
│     ├── env.sh
│     ├── menu.sh
│     ├── probe.sh
│     ├── scan.sh
│     ├── sys.sh
│     └── util.sh
├── readme
│  └── grub.md
├── readme.md
├── todo.gv
└── todo.svg

Usage

build

build.sh pgp_fingerprint /esp/mount/point [/data/mount/point]

example

/rwx/lsgm/build.sh 9C7613450C80C24F /media/ssd/esp /media/ssd/data

output

├── bios
│  ├── boot.img
│  ├── core.img
│  └── setup.sh
├── boot
│  ├── grub
│  │  ├── fonts
│  │  │  └── *.pf2
│  │  ├── grub.cfg
│  │  ├── grub.pgp
│  │  ├── grubenv
│  │  ├── i386-pc
│  │  │  ├── *.lst
│  │  │  └── *.mod
│  │  ├── locale
│  │  │  └── *.mo
│  │  ├── themes
│  │  │  ├── breeze
│  │  │  │  ├── theme.txt
│  │  │  │  ├── *.pf2
│  │  │  │  ├── *.pf2.license
│  │  │  │  ├── *.png
│  │  │  │  └── *.png.license
│  │  │  └── starfield
│  │  │     ├── README
│  │  │     ├── theme.txt
│  │  │     ├── *.pf2
│  │  │     ├── *.pf2.license
│  │  │     ├── *.png
│  │  │     └── *.png.license
│  │  └── x86_64-efi
│  │     ├── *.lst
│  │     └── *.mod
│  └── lsgm
│     ├── menu
│     │  ├── cmd.sh
│     │  ├── env.sh
│     │  ├── gfx.sh
│     │  ├── main.sh
│     │  ├── pause.sh
│     │  ├── scan.sh
│     │  ├── set.sh
│     │  └── static.sh
│     └── source
│        ├── boot.sh
│        ├── env.sh
│        ├── menu.sh
│        ├── probe.sh
│        ├── scan.sh
│        ├── sys.sh
│        └── util.sh
├── efi
│  └── boot
│     ├── bootx64.efi
│     ├── core.efi
│     └── grubx64.efi
└── grub.env

setup

setup.sh /dev/device
  • example:
bash /media/ssd/esp/bios/setup.sh /dev/sda

Roadmap

Graph

BASH

build

  • make custom

    • fonts
    • keyboard layouts
  • make images

    • mimic grubx64.efi.signed

    • targets

      • arm
      • i386-pc
      • x86_64-efi
      • x86_64-efi-signed
    • embed extra

      • fonts
      • keyboard layouts
      • locales
  • copy

    • fonts
    • locales
    • themes
  • sign files

  • setup bios

    • write for manual call

      • boot image
      • core image
      • setup script
    • auto

      • find esp device
      • write bios_grub partition

live

  • check signatures

  • options

    • check signatures for *.squashfs
    • boot to ram
    • locales
    • themes
  • target specific live-media

    • try -mount-opts
  • refactor grub list_{const,vars,xtra} & split

  • setparams probe_unset & smbios_unset

Python