sys-kernel/booster: update ebuild
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user