I'm trying to make a fast reboot to the other Linux system. First step is kernel loading, I make it with
sudo kexec --append='$(cat /proc/cmdline)' -l new_kernel.img --reuse-cmdline
sudo kexec -e
It works fine, but loads only kernel, not entire system.
How can I mount an *.img
file with OS resources, located at USB as /
? Preferable during kernel loading, but afterwards mount is still suitable. *.img
format is not necessary, it can be unpacked before