improve kernel build steps
Some checks failed
Build Custom Kernel / build-kernel (push) Has been cancelled

This commit is contained in:
2024-12-19 18:58:50 +01:00
parent 6f97c30371
commit 1c0957ab36
3 changed files with 20 additions and 21 deletions

View File

@@ -9,13 +9,11 @@ nix-build '<nixpkgs/nixos>' -A config.system.build.kernel --arg configuration ./
1. Create a tarball of the built kernel:
```bash
tar -czf custom-kernel.tar.gz -C result .
mkdir result-writable
cp -rL result/lib/modules/6.6.63/kernel result-writable/kernel
sudo chmod -R u+rwX,g+rwX,o+rX result-writable
tar -czf custom-kernel.tar.gz -C result-writable .
rm -rf result-writable
```
2. Upload the tarball as an artifact to Gitea:
```bash
curl -X POST -H "Content-Type: application/octet-stream" \
-H "Authorization: token YOUR_GITEA_TOKEN" \
--data-binary @custom-kernel.tar.gz \
"https://gitea.example.com/api/v1/repos/your-username/your-repo/releases/YOUR_RELEASE_ID/assets?name=custom-kernel.tar.gz"
```
2. Create a new release on Gitea and upload the tarball