void-packages/srcpkgs/u-boot-menu/template
Remi Pommarel 617eab313a New package: u-boot-menu
Add a kernel hook to create an extlinux boot menu for u-boot. All
kernels and initirds found in /boot/ are added to the boot menu. The
timeout, kernel command line and DTB name to be used can be configured
in /etc/default/extlinux.

Then u-boot can be set to boot with this menu with :
sysboot mmc <bootpart> any <extaddr> extlinux/extlinux.conf
2019-01-22 07:46:28 -02:00

18 lines
552 B
Bash

# Template file for 'u-boot-menu'
pkgname=u-boot-menu
version=0.1
revision=1
noarch=yes
conf_files="/etc/default/extlinux"
short_desc="Create an u-boot menu with currently available kernels"
maintainer="Remi Pommarel <repk@triplefau.lt>"
license="Public domain"
homepage="https://www.voidlinux.org"
do_install() {
vinstall ${FILESDIR}/extlinux.default 644 etc/default extlinux
vinstall ${FILESDIR}/kernel.d/extlinux 750 \
etc/kernel.d/post-install 60-extlinux
vinstall ${FILESDIR}/kernel.d/extlinux 750 \
etc/kernel.d/post-remove 60-extlinux
}