Protect signing key from regeneration for kernel build.
This commit is contained in:
parent
efa978da0b
commit
b196609b9d
@ -49,11 +49,11 @@ function kernel-build() {
|
|||||||
fakeroot debian/rules clean;
|
fakeroot debian/rules clean;
|
||||||
mkdir -p debian/build/build-generic/certs;
|
mkdir -p debian/build/build-generic/certs;
|
||||||
sudo cp /cert/mok/signing_key.pem debian/build/build-generic/certs/;
|
sudo cp /cert/mok/signing_key.pem debian/build/build-generic/certs/;
|
||||||
sudo chmod u=rw,g=rw,o=rw debian/build/build-generic/certs/signing_key.pem;
|
sudo chmod u=rw,g=r,o=r debian/build/build-generic/certs/signing_key.pem;
|
||||||
echo "[*] Building kernel...";
|
echo "[*] Building kernel...";
|
||||||
fakeroot debian/rules binary;
|
fakeroot debian/rules binary;
|
||||||
echo "[*] Build Complete!";
|
echo "[*] Build Complete!";
|
||||||
rm -f debian/build/build-generic/certs/signing_key.pem;
|
sudo rm -f debian/build/build-generic/certs/signing_key.pem;
|
||||||
echo "[+] Extracting kernel package...";
|
echo "[+] Extracting kernel package...";
|
||||||
cd ~/kernel;
|
cd ~/kernel;
|
||||||
mkdir -p deb-contents;
|
mkdir -p deb-contents;
|
||||||
|
Loading…
Reference in New Issue
Block a user