pmaports/device/testing/device-generic-x86_64/device-generic-x86_64.post-install
Clayton Craft d7dbabe46f
device-generic-x86_64: split off oem-specific packages (MR 4673)
This uses oem-specific packages for configuring Intel and AMD systems,
and installs them all by default for new images using pmbootstrap's
pmb_recommends feature.

The intention is to provide pre-built images with support for Intel and
AMD already enabled/configured, and users can remove an unwanted set of
packages (e.g., `apk del device-generic-x86_64-intel` when on an AMD
system) if they want to.

Upgrading existing systems should work, in that I haven't observed any
apk conflicts with it. But you do need to manually install the new
oem-specific package if you need it (e.g. `oem-intel`)

fixes https://gitlab.com/postmarketOS/pmaports/-/issues/2484
2024-01-09 21:56:39 +01:00

9 lines
430 B
Bash

#!/bin/sh
# Only display this message if none of the `oem-*` packages are installed
if ! grep -Ex "oem-\b(\?|amd|intel)" /etc/apk/world 2>/dev/null; then
echo "* NOTE: This package no longer automatically installs OEM-specific drivers and firmware."
echo "* You will likely need to install one or both of these manually, depending on your hardware."
echo "* For AMD: apk add oem-amd"
echo "* For Intel: apk add oem-intel"
fi