Skip to content
Snippets Groups Projects
Unverified Commit e16b9cbf authored by Caleb Connolly's avatar Caleb Connolly :recycle:
Browse files

postmarketos-initramfs: split into tiny + fullsize variants


This split is only to handle differing dependencies. At runtime the
initramfs should have a fall-back for when they're unavailable.

Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
parent f9394fb4
No related branches found
No related tags found
No related merge requests found
/usr/bin/iskey
......@@ -6,6 +6,7 @@ pkgrel=0
pkgdesc="Base files for the postmarketOS initramfs / initramfs-extra"
url="https://postmarketos.org"
options="!check" # no tests
subpackages="$pkgname-tiny $pkgname-fullsize"
depends="
blkid
btrfs-progs
......@@ -83,6 +84,24 @@ package() {
mkdir -p "$pkgdir"/etc/mkinitfs/hooks-extra
}
# Tiny variant for devices with very limited space
tiny() {
depends="!postmarketos-initramfs-fullsize"
mkdir -p "$subpkgdir"
}
# Full size initramfs for most devices
fullsize() {
install_if="postmarketos-initramfs"
mkdir -p "$subpkgdir"
# NOTICE: no files should be installed here. This should only
# be used for dependencies which don't fit in the tiny variant.
# Those dependencies should then be adjusted to be optional at
# runtime, so that the tiny variant can still be used.
}
sha512sums="
59be0649ed87a72d93624bd8a2e3f8c99a0f32f7b7a26f99436de782beba55671472c269eeee86440efc87e0d7148a0bb335fa537791092e73878ca21330544a 00-default.modules
5b364300f31c91fd0591eb0715f67cbf5383f45246a5fb9f34b79f7cb2e3b15768b2130e5f32f816cc169950f988c1beabc879ba31645c58ce131a288dbc071d 00-initramfs-base.dirs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment