Add files.
This commit is contained in:
parent
14487cf120
commit
12d873313d
27
portage/bashrc
Normal file
27
portage/bashrc
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# This hook is neccesary for automatic updating of the cfg-update index, please do not modify it!
|
||||||
|
pre_pkg_setup() {
|
||||||
|
[[ $ROOT = / ]] && cfg-update --index
|
||||||
|
}
|
||||||
|
|
||||||
|
function pre_pkg_preinst() {
|
||||||
|
# This hook signs any out-of-tree kernel modules.
|
||||||
|
if [[ "$(type -t linux-mod_pkg_preinst)" != "function" ]]; then
|
||||||
|
# The package does not seem to install any kernel modules.
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
# Get the signature algorithm used by the kernel.
|
||||||
|
local module_sig_hash="$(grep -Po '(?<=CONFIG_MODULE_SIG_HASH=").*(?=")' "${KERNEL_DIR}/.config")"
|
||||||
|
# Get the key file used by the kernel.
|
||||||
|
local module_sig_key="$(grep -Po '(?<=CONFIG_MODULE_SIG_KEY=").*(?=")' "${KERNEL_DIR}/.config")"
|
||||||
|
module_sig_key="${module_sig_key:-certs/signing_key.pem}"
|
||||||
|
# Path to the key file or PKCS11 URI
|
||||||
|
if [[ "${module_sig_key#pkcs11:}" == "${module_sig_key}" && "${module_sig_key#/}" == "${module_sig_key}" ]]; then
|
||||||
|
local key_path="${KERNEL_DIR}/${module_sig_key}"
|
||||||
|
else
|
||||||
|
local key_path="${module_sig_key}"
|
||||||
|
fi
|
||||||
|
# Certificate path
|
||||||
|
local cert_path="${KERNEL_DIR}/certs/signing_key.x509"
|
||||||
|
# Sign all installed modules before merging.
|
||||||
|
find "${D%/}/${INSDESTTREE#/}/" -name "*.ko" -exec "${KERNEL_DIR}/scripts/sign-file" "${module_sig_hash}" "${key_path}" "${cert_path}" '{}' \;
|
||||||
|
}
|
19
portage/repos.conf
Normal file
19
portage/repos.conf
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Portage repos.conf
|
||||||
|
|
||||||
|
# COpyright 2022 Inference
|
||||||
|
|
||||||
|
|
||||||
|
[musl]
|
||||||
|
location = /var/db/repos/musl
|
||||||
|
sync-type = git
|
||||||
|
sync-uri = https://anongit.gentoo.org/git/proj/musl.git
|
||||||
|
|
||||||
|
[inferencium]
|
||||||
|
location = /var/db/repos/inferencium
|
||||||
|
sync-type = git
|
||||||
|
sync-uri = https://codeberg.org/inference/inferencium.git
|
||||||
|
|
||||||
|
[yemou-overlay]
|
||||||
|
location = /var/db/repos/yemou-overlay
|
||||||
|
sync-type = git
|
||||||
|
sync-uri = https://github.com/yemouu/yemou-overlay.git
|
2804
portage/savedconfig/sys-kernel/linux-firmware-20220509
Normal file
2804
portage/savedconfig/sys-kernel/linux-firmware-20220509
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user