I created an ext4-filesystem on a loop device with all necessary files to boot with, e.g.:
/bin /boot /dev /lib /mnt /etc ...
Now I want to boot from the loop device as an image (let's say
filesystem.img) with this filesystem.
Is it possible to make this loop device as the new root filesystem and to boot from it with the GRUB2 bootloader?
I also read an article about initrd to perform this with the initial ram disk: https://developer.ibm.com/articles/l-initrd/