In Qemu, I'm starting a linux VM where init process (PID 1) is bash.
It is working : I can use bash after boot.
But when I quit bash with a
CTRL+D I got a kernel panic.
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
I'd like the system to halt properly and ideally, I'd like it to sync disk before when quitting bash.
Is it possible, knowing that I can modify kernel behavior only by passing options at boot ?