863ec713ba
Mount the boot partition at /sysroot/boot and keep it mounted, when running the switch_root command. This way, OpenRC doesn't need to mount it and possibly use the wrong partition. The OpenRC service does not use the same logic to find the boot partition, in particular it does not support the pmos_boot kernel parameter. While at it, print the mountpoint and read-only/read-write arguments in the mounting log message for both root and boot. Fixes: #664
46 lines
1.9 KiB
Text
46 lines
1.9 KiB
Text
pkgname=postmarketos-mkinitfs
|
|
pkgver=0.12.3
|
|
pkgrel=0
|
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
|
url="https://postmarketos.org"
|
|
# multipath-tools: kpartx
|
|
depends="busybox-extras lddtree cryptsetup kmod multipath-tools
|
|
device-mapper parted e2fsprogs e2fsprogs-extra osk-sdl charging-sdl triggerhappy xz bzip2 lz4"
|
|
replaces="mkinitfs"
|
|
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*"
|
|
source="00-default.modules
|
|
init.sh.in
|
|
init_functions.sh
|
|
mkinitfs.sh
|
|
mkinitfs_functions.sh
|
|
mkinitfs_test.sh
|
|
"
|
|
arch="noarch"
|
|
license="GPL2"
|
|
provides="mkinitfs=0.0.1"
|
|
|
|
package() {
|
|
for file in init.sh.in init_functions.sh mkinitfs_functions.sh; do
|
|
install -Dm644 "$srcdir/$file" \
|
|
"$pkgdir/usr/share/postmarketos-mkinitfs/$file"
|
|
done
|
|
|
|
install -Dm644 "$srcdir/00-default.modules" \
|
|
"$pkgdir/etc/postmarketos-mkinitfs/modules/00-default.modules"
|
|
|
|
install -Dm755 "$srcdir/mkinitfs.sh" \
|
|
"$pkgdir/sbin/mkinitfs"
|
|
|
|
mkdir -p "$pkgdir/etc/postmarketos-mkinitfs/hooks/"
|
|
}
|
|
|
|
check() {
|
|
/bin/busybox sh ./mkinitfs_test.sh
|
|
}
|
|
|
|
sha512sums="5037cb7285bb7c0c40ca9e6df332d882ef9a8b379756c785f921e062dab1b7e7f3139d00897f69323a916d709ced4297fea8cbd3a13ebae575b873ec9e2cbfae 00-default.modules
|
|
995b4d15e6b248d55d53221ec52674e62d74f0be539ac2ab26d4279544e2bece7aa58810dd831e1b2f08f0520fc9a8dff3ad4df52a46ef73f61e462f74f68c48 init.sh.in
|
|
683b1784cc6572717dd805caabea38fac1780b03ff3540b888aab4fd91ccae404634874e6c9fa39f723186821a849844c6df1235bdcbf47b2de6b7f483c42178 init_functions.sh
|
|
7201d4640a3e9ead8a47ffd9916b068476b7d950760a84c37e02268c942d49896bc986da6bdee27e832639c90775354d68046a6475205d8d1da995b068120d8f mkinitfs.sh
|
|
5105fcc5f2094009937b378c8d383270f4fcd0133d0e60268806a7d09966613f4ebfa93d7e1b90b5d83d0c5b1664a0b3fc7562e52cc1e0ca6cd54ff442b03e84 mkinitfs_functions.sh
|
|
c7a3c33daeb12b33ac72207191941c4d634f15c22958273b52af381a70ebaba1d3a9299483f0c447d9e66c560151fe7b9588bb4bbef2c8914f83185984ee4622 mkinitfs_test.sh"
|