$ sudo qemu-system-x86_64 -kernel ./vmlinuz-5.8.0-41-generic -initrd ./initrd-pad4-5.8.0-41-generic -append 'break=top quiet console=ttyS0' -m 2G -nographic -no-reboot
Spawning shell within the initramfs
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.3) built-in shell (ash) Enter 'help' for a list of built-in commands.
(initramfs) cat /test-file hello (initramfs) uname -a Linux (none) 5.8.0-41-generic #46-Ubuntu SMP Mon Jan 18 16:48:44 UTC 2021 x86_64 GNU/Linux (initramfs)
Groovy verified too now.
$ sudo qemu-system-x86_64 -kernel ./vmlinuz- 5.8.0-41- generic -initrd ./initrd- pad4-5. 8.0-41- generic -append 'break=top quiet console=ttyS0' -m 2G -nographic -no-reboot
Spawning shell within the initramfs
BusyBox v1.30.1 (Ubuntu 1:1.30. 1-4ubuntu6. 3) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs) cat /test-file
hello
(initramfs) uname -a
Linux (none) 5.8.0-41-generic #46-Ubuntu SMP Mon Jan 18 16:48:44 UTC 2021 x86_64 GNU/Linux
(initramfs)
Groovy verified too now.