Skip to content

Commit

Permalink
qemu: Append nosplash to kernel arguments to stop plymouth from starting
Browse files Browse the repository at this point in the history
The plymouth service starts when running a qemu/kvm guest, plymouth clears
the serial console during boot which in turn causes the host's shell to be
cleared. Add nosplash to the kernel argument to stop plymouth from
starting during the machine's boot.

This parameter is already present in the uml backend.

Fixes: #66
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
  • Loading branch information
obbardc committed Jul 26, 2023
1 parent e2c660f commit e1f3788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,11 @@ func (b qemuBackend) StartQemu(kvm bool) (bool, error) {
qemuargs = append(qemuargs, "-machine", qemuMachine.machine)
console := fmt.Sprintf("console=%s", qemuMachine.console)
kernelargs := []string{console, "panic=-1",
"nosplash",
"systemd.unit=fakemachine.service"}

kernelargs = append(kernelargs, "nosplash")

if m.showBoot {
// Create a character device representing our stdio
// file descriptors, and connect the emulated serial
Expand Down

0 comments on commit e1f3788

Please sign in to comment.