Create a custom image

Hi there,
is it possible to create a custom image?
Lets say:

  1. step: I take a Armbian Image, mount it on a second PC, remove all files and programs except the Linux Kernel, DTB Files, u-boot.
  2. step: take a Fedora ARM64 Image, mount it on second PC, copy all files and programs to first Armbian Image
  3. step: edit /boot/armbianEnv.txt
  4. step: boot Fedora on Rock5 with Armbian Kernel
    Does this works? Any thoughts?

Greetings
Andreas

Fedora has a binary called arm-image-installer, which could probably be modified to do these things.

Armbian provides powerful build system:
https://docs.armbian.com/Developer-Guide_Build-Preparation/