7df2c93459
Adds a new initfs hook, verbose-initfs, which doesn't do anything on its own. Modify postmarketos-mkinitfs to check if this hook is installed and if so run `set -x`. It's done this way so verbose boot is enabled as early as possible, before hooks are loaded. Tested on the qemu-aarch64 device. - pmboostrap initfs hook_add verbose-initfs - pmbootstrap qemu --arch aarch64 - confirmed that commands are echoed to the console
17 lines
595 B
Text
17 lines
595 B
Text
pkgname="postmarketos-mkinitfs-hook-verbose-initfs"
|
|
pkgver=0.1.0
|
|
pkgrel=0
|
|
pkgdesc="Print all shell commands executed by initramfs to the console"
|
|
url="https://postmarketos.org"
|
|
depends="postmarketos-mkinitfs"
|
|
source="10-verbose-initfs.sh"
|
|
arch="noarch"
|
|
license="GPL2"
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/etc/postmarketos-mkinitfs/hooks/
|
|
install -Dm644 "$srcdir"/10-verbose-initfs.sh \
|
|
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/
|
|
}
|
|
|
|
sha512sums="97d92de64dc870e293a47bb2959877b63f20692030277083e56e499022fc643c1f199a65bd11f8dce9634ac3b80a43dd6934e29de4cf0b53fb2e663f46675a0f 10-verbose-initfs.sh"
|