3ed9591e41
This cmdline argument is now a no-op. Drop it everywhere and add a new CI check to enforce this. Adjust the deprecated "minimal" initramfs variant to use pmos.debug-shell to enable logging instead. It doesn't /support/ dropping to a shell, so the variable takes on a different meaning. But that's ok since it's at least more consistent. [ci:ignore-count] [ci:skip-vercheck] Signed-off-by: Caleb Connolly <caleb@postmarketos.org> Tweaked-by: Oliver Smith <ollieparanoid@postmarketos.org> [ci:skip-build]: kernel builds are very likely to go through now
23 lines
696 B
Bash
23 lines
696 B
Bash
#!/bin/sh
|
|
|
|
console=$1
|
|
subpkgname=${subpkgname:-ERROR}
|
|
|
|
if [ "$subpkgname" = "ERROR" ]; then
|
|
echo "ERROR: devicepkg_pmtest_post_install should only be called" >&2
|
|
echo "from an APKBUILD subpackage function" >&2
|
|
fi
|
|
|
|
# Install a trigger so that mkinitfs will run when this package is installed
|
|
# shellcheck disable=SC2154
|
|
mkdir -p "$subpkgdir/usr/share/mkinitfs-triggers/"
|
|
touch "$subpkgdir/usr/share/mkinitfs-triggers/$subpkgname"
|
|
|
|
# Echo out the .post-install data for the calling package to pipe to their
|
|
# .post-install file
|
|
cat <<EOF
|
|
#!/bin/sh
|
|
|
|
echo -e "\n# PMOS CI: enable console logging" >> /etc/deviceinfo
|
|
echo 'deviceinfo_kernel_cmdline_append="console=$console"' >> /etc/deviceinfo
|
|
EOF
|