main/postmarketos-mkinitfs: add new trigger for osk-sdl (MR 1563)
We now trigger on files in /usr/share/postmarketos-mkinitfs-triggers. This can be used by other packages like osk-sdl for which an updated version would otherwise never be used in the initramfs
This commit is contained in:
parent
4f6bec666c
commit
01019884fb
2 changed files with 26 additions and 6 deletions
|
@ -1,13 +1,28 @@
|
||||||
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
||||||
pkgname=postmarketos-mkinitfs
|
pkgname=postmarketos-mkinitfs
|
||||||
pkgver=0.14.1
|
pkgver=0.14.1
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
# multipath-tools: kpartx
|
depends="
|
||||||
depends="busybox-extras lddtree cryptsetup kmod multipath-tools
|
busybox-extras
|
||||||
device-mapper parted e2fsprogs e2fsprogs-extra osk-sdl charging-sdl triggerhappy xz bzip2 lz4"
|
bzip2
|
||||||
|
charging-sdl
|
||||||
|
cmd:kpartx
|
||||||
|
cryptsetup
|
||||||
|
device-mapper
|
||||||
|
e2fsprogs
|
||||||
|
e2fsprogs-extra
|
||||||
|
kmod
|
||||||
|
lddtree
|
||||||
|
lz4
|
||||||
|
osk-sdl
|
||||||
|
parted
|
||||||
|
triggerhappy
|
||||||
|
xz
|
||||||
|
"
|
||||||
replaces="mkinitfs"
|
replaces="mkinitfs"
|
||||||
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*"
|
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*:/usr/share/postmarketos-mkinitfs-triggers"
|
||||||
source="00-default.modules
|
source="00-default.modules
|
||||||
init.sh.in
|
init.sh.in
|
||||||
init_functions.sh
|
init_functions.sh
|
||||||
|
@ -16,7 +31,7 @@ source="00-default.modules
|
||||||
mkinitfs_test.sh
|
mkinitfs_test.sh
|
||||||
"
|
"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL2"
|
license="GPL-2.0-or-later"
|
||||||
provides="mkinitfs=0.0.1"
|
provides="mkinitfs=0.0.1"
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
|
@ -19,6 +19,11 @@ for i in "$@"; do
|
||||||
rebuild_all="true"
|
rebuild_all="true"
|
||||||
break ;;
|
break ;;
|
||||||
|
|
||||||
|
# osk-sdl change
|
||||||
|
/usr/share/postmarketos-mkinitfs-triggers)
|
||||||
|
rebuild_all="true"
|
||||||
|
break ;;
|
||||||
|
|
||||||
# Kernel flavor change
|
# Kernel flavor change
|
||||||
/usr/share/kernel/*)
|
/usr/share/kernel/*)
|
||||||
flavor=${i##*/}
|
flavor=${i##*/}
|
||||||
|
|
Loading…
Reference in a new issue