base-files: improve consistency of relative paths in kernel hooks
This commit is contained in:
parent
0194f95096
commit
8f4c05bf76
|
@ -39,10 +39,12 @@ list_kernels() {
|
|||
run_hooks() {
|
||||
dir="$1"
|
||||
kver="$2"
|
||||
|
||||
for d in /etc/kernel.d/"${dir}"/*; do
|
||||
[ -x "$d" ] || continue
|
||||
printf "Running %s kernel hook: %s...\n" "$dir" "${d##*/}"
|
||||
"$d" kernel "$kver"
|
||||
# Hooks assume they run from the root
|
||||
(cd / && ROOTDIR=. "$d" kernel "$kver")
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'base-files'
|
||||
pkgname=base-files
|
||||
version=0.141
|
||||
revision=1
|
||||
revision=2
|
||||
bootstrap=yes
|
||||
depends="xbps-triggers"
|
||||
short_desc="Void Linux base system files"
|
||||
|
|
Loading…
Reference in New Issue