Skip to content

Draft: main/postmarketos-mkinitfs-hook-kernelmodules: new aport

Caleb Connolly requested to merge bootimg-modules into master

Allow stuffing kernel modules into a boot.img and installing them on the fly. This is intended for local kernel development or in CI where it's desirable to test a kernel just by flashing or booting a boot.img file without having to install the new modules into the rootfs.

This requires running a hook after the rootfs has been mounted, we can do this by putting the scripts for this hook in /usr/share/mkinitfs/hooks/sysroot to avoid needlessly creating new /hook-* directories and adding them to mkinitfs.

TODO:

  • Fix mkinitfs so that it properly handles subdirectories for hook directories postmarketos-mkinitfs!35
  • Document the sysroot hooks on the wiki
Edited by Caleb Connolly

Merge request reports