I've created a bootable Linux system by following LFS 11.0
The boot device itself is on USB, so I have used initrd as well.
All worked fine. Then I've created a backup of the root filesystem from the host using the command
Code:
tar -cJpf $HOME/i9-11.0.tar.xz -C $LFS
Then I formatted the USB disk, installed the root filesystem from the backup in a host using the command
Code:
tar -xpf $HOME/i9-11.0.tar.xz -C $LFS
I installed grub on the USB disk and updated grub.cfg from the backup copy.
When I rebooted with the USB stick, grub loads the kernel, but the kernel could find the root filesystem. It gives the error in the picture error.jpg. Sorry for the pictures as I couldn't find these errors in any of the logs.
However, when entering the 'exit' command in the initial shell, it continues to load the root filesystem correctly, which is shown in post_error.jpg
I did a sanity check on the extracted filesystem, everything seems to be there.
Is anything specific in the root filesystem that should be installed rather than extracted from tar ball?