Credits to @TheOnlyAnil-@Firelord[^stackoverflow]
-
Requirements: a) stock recovery + rooted phone b) custom recovery
-
Files changed:
#!/bin/bash | |
# Version 0.2 by Sebastiaan Franken | |
# This is meant and tested on Fedora and Fedora only, with systemd-boot (bootctl) | |
# Place this file in /etc/kernel/postinst.d/ and don't forget to make it executable | |
# with chmod +x /etc/kernel/postinst.d/bootctl-postinst.sh | |
# | |
# Also, don't forget to modify the rootpath variable to reflect your situation | |
[ -f /etc/sysconfig/kernel ] && . /etc/sysconfig/kernel |
{ config, pkgs, ... }: | |
let | |
# Import unstable channel. | |
# sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable | |
# sudo nix-channel --update nixpkgs-unstable | |
unstable = import <nixpkgs-unstable> {}; | |
in | |
{ |
#!/bin/bash | |
# | |
# /etc/kernel/postinst.d script to sign akmods kmods after kernel upgrade | |
# | |
# Author: Michael Goodwin Date: 2016-09-21 | |
# 1. Copy this script to /etc/kernel/postinst.d/ and `chmod +x` it | |
# | |
# 2. Create signing keys (store these somewhere useful and safe): | |
# $ mkdir -p /etc/pki/tls/private/mok |