e97b61b023
This modifies to the postmarketOS ramdisk init to use the new pbsplash tool for displaying splash messages, replacing the old fbsplash. This also moves the show_splash call to run as soon as possible rather than waiting for mount_subpartitions to run (which can take a while).
72 lines
2.1 KiB
Text
72 lines
2.1 KiB
Text
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=postmarketos-mkinitfs
|
|
pkgver=1.6.1
|
|
pkgrel=1
|
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
|
url="https://postmarketos.org"
|
|
depends="
|
|
boot-deploy>=0.7
|
|
busybox-extras
|
|
btrfs-progs
|
|
bzip2
|
|
cryptsetup
|
|
device-mapper
|
|
e2fsprogs
|
|
e2fsprogs-extra
|
|
f2fs-tools
|
|
lz4
|
|
multipath-tools
|
|
parted
|
|
postmarketos-fde-unlocker
|
|
unudhcpd
|
|
xz
|
|
"
|
|
makedepends="go"
|
|
replaces="mkinitfs"
|
|
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*:/usr/share/postmarketos-mkinitfs-triggers"
|
|
source="
|
|
https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/archive/$pkgver/postmarketos-mkinitfs-$pkgver.tar.gz
|
|
00-default.modules
|
|
init.sh
|
|
init_functions.sh
|
|
"
|
|
install="$pkgname.post-upgrade"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
provider_priority=999 # higher priority than Alpine's mkinitfs
|
|
provides="initramfs-generator"
|
|
|
|
export GOPATH="$srcdir"
|
|
export CGO_ENABLED=0
|
|
|
|
build() {
|
|
unset LDFLAGS # passed to Go as linker flags, which are invalid
|
|
make
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "$srcdir/init_functions.sh" \
|
|
"$pkgdir/usr/share/postmarketos-mkinitfs/init_functions.sh"
|
|
|
|
install -Dm755 "$srcdir/init.sh" \
|
|
"$pkgdir/usr/share/postmarketos-mkinitfs/init.sh"
|
|
|
|
install -Dm644 "$srcdir/00-default.modules" \
|
|
"$pkgdir/etc/postmarketos-mkinitfs/modules/00-default.modules"
|
|
|
|
mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/"
|
|
|
|
make PREFIX=/usr DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
sha512sums="
|
|
eb4af0fd9b5050e792c2ffb5d72e38899d19e623eda8f41e7cfeaa3d6dcae7e0342381cfc12f4969017d1e3b3b5d879614b0bbc3e4cf2d5fd01769e741bea17e postmarketos-mkinitfs-1.6.1.tar.gz
|
|
20f110337113e8de8999cf2a064a93fea36821d5c216bfa4ba46ec1f83825638262b92fd7be29eee0a85a54a108b7315a96cbe30da8ae4419f54c2ed53bb08c7 00-default.modules
|
|
5f8e4acb19abee32b481f69b50be96ab06b1fea1b27448b9d08dfa13f0868d7808139b39c88d64bd35a3d6b2727e7b71797dbf0e99f6a92157e2755c89a34da4 init.sh
|
|
4c18c7d1078c0fd37623e53d0f6d5660df7d6e53f2340c2b24cf62129cf7c4c5a90856ed6d0254498c927a7e41431e9344c4a6eae236f986e9468f45a7c7f281 init_functions.sh
|
|
"
|