sys-kernel/booster: update ebuild

This commit is contained in:
2024-09-27 15:04:13 +03:00
parent 9b71c7e3b7
commit a141283b90
3 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# this file is installed by sys-kernel/ugrd
# this file is installed by sys-kernel/booster
ver=${1}
img=${2}
@@ -24,10 +24,10 @@ main() {
# re-define for subst to work
[[ -n ${NOCOLOR+yes} ]] && NOCOLOR=
# Exit if ugrd is not the INSTALLKERNEL_INITRD_GENERATOR
# Exit if booster is not the INSTALLKERNEL_INITRD_GENERATOR
[[ ${INSTALLKERNEL_INITRD_GENERATOR} == "booster" ]] || exit 0
# do nothing if somehow ugrd is not installed
# do nothing if somehow booster is not installed
[[ -x $(command -v booster) ]] || { ewarn "booster is not installed" && exit 0 ; }
[[ ${EUID} -eq 0 ]] || die "Please run this script as root"

View File

@@ -6,7 +6,7 @@ KERNEL_VERSION="${2:?}"
# Do not attempt to create initramfs if the supplied image is already a UKI
[ "${KERNEL_INSTALL_IMAGE_TYPE}" = "uki" ] && exit 0
# Only run if the initrd generator is ugrd
# Only run if the initrd generator is booster
[ "${KERNEL_INSTALL_INITRD_GENERATOR}" = "booster" ] || exit 0
# only run when the COMMAND is add, and fewer than 5 arguments are passed