Skip to content

Commit

Permalink
Fix qemu login prompt recognition
Browse files Browse the repository at this point in the history
Most of the times we boot a new VM, login message shows '#' symbol
at the end. However, we are using '# ' (with space) to indicate
availability the user prompt. This can lead to an unrecognised
login prompt if message contain any color after the symbol.

With this patch, we take '#' symbol only into account, so we are able to
cover as much as cases as possible by default.
  • Loading branch information
acerv committed Sep 15, 2023
1 parent 805c56c commit c7419dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libkirk/qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def setup(self, **kwargs: dict) -> None:
self._tmpdir = kwargs.get("tmpdir", None)
self._user = kwargs.get("user", None)
self._password = kwargs.get("password", None)
self._prompt = kwargs.get("prompt", "# ")
self._prompt = kwargs.get("prompt", "#")
self._image = kwargs.get("image", None)
self._initrd = kwargs.get("initrd", None)
self._kernel = kwargs.get("kernel", None)
Expand Down

0 comments on commit c7419dd

Please sign in to comment.