Skip to content

src/context: parse the case cmdline contain root=None #1753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BenjaminMiss
Copy link

In the case of the cmdline contain root=None, rauc service fail. It is because the function get_cmdline_bootname_root() does not provide for this scenario and continue to the end before crashing. If cmdline contain root=None, the function get_cmdline_bootname_root() should give the same result as for case root=xxx is not define, namely returning NULL to avoid rauc failures.
root=None on cmdline can occur on Yocto images for x86_64 system.

In the case of the cmdline contain root=None, rauc service fail. It is
because the function get_cmdline_bootname_root() does not provide for
this scenario and continue to the end before crashing.
If cmdline contain root=None, the function get_cmdline_bootname_root() should
give the same result as for case root=xxx is not define, namely returning NULL
to avoid rauc failures.
root=None on cmdline can occur on Yocto images for x86_64 system.

Signed-off-by: Benjamin Missey <benjamin.missey@non.se.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant