Fix embedded kernel module signature.
This commit is contained in:
parent
d304b49d52
commit
d8596b1ed9
10
bash_aliases
10
bash_aliases
@ -60,6 +60,9 @@ function kernel-build() {
|
||||
cd "$linuxdir";
|
||||
echo "[*] Patching source and configuration...";
|
||||
sed -i "s/.*CONFIG_MODULE_SIG_FORCE.*/CONFIG_MODULE_SIG_FORCE policy<{'amd64': 'y', 'arm64': 'y', 'armhf': 'y', 'ppc64el': 'y', 's390x': 'y'}>/" debian.master/config/annotations;
|
||||
if [ -f certs/system_certificates.S ]; then
|
||||
sed -i 's@.*\.incbin "certs/signing_key\.x509".*@ \.incbin "certs/signing_key\.der"@' certs/system_certificates.S;
|
||||
fi;
|
||||
git apply --verbose ~/Downloads/patches/hibernate/0001-Hibernate-Patch.patch;
|
||||
echo "[*] Cleaning kernel build...";
|
||||
chmod a+x debian/rules;
|
||||
@ -71,6 +74,7 @@ function kernel-build() {
|
||||
sudo chmod u=rw,g=rw,o=rw ../signing_key.pem;
|
||||
sudo cp /var/lib/shim-signed/mok/MOK.der ../signing_key.x509 -f;
|
||||
sudo chmod u=rw,g=rw,o=rw ../signing_key.x509;
|
||||
cp ../signing_key.x509 debian/build/build-generic/certs/signing_key.der -f;
|
||||
(((until [ -f debian/build/build-generic/certs/signing_key.pem ]; do sleep 0.1; done) && while lsof debian/build/build-generic/certs/signing_key.pem; do sleep 0.1; done) && mv -f ../signing_key.pem debian/build/build-generic/certs/signing_key.pem) &
|
||||
(((until [ -f debian/build/build-generic/certs/signing_key.x509 ]; do sleep 0.1; done) && while lsof debian/build/build-generic/certs/signing_key.x509; do sleep 0.1; done) && mv -f ../signing_key.x509 debian/build/build-generic/certs/signing_key.x509) &
|
||||
else
|
||||
@ -222,3 +226,9 @@ function record-screen-x11() {
|
||||
function search-in-files() {
|
||||
grep -Rnw "$1" -e "$2";
|
||||
}
|
||||
function apt-search() {
|
||||
apt list | grep "$1";
|
||||
}
|
||||
function apt-search-installed() {
|
||||
apt list --installed | grep "$1";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user