Skip to content
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

pci: don't pass chroot to pcidb with snapshots #286

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

ffromani
Copy link
Collaborator

@ffromani ffromani commented Nov 3, 2021

The snapshot implementation leverages chroot and transparently set it to the unpacked snapshot root. This is the intentional behaviour and ghw supports it.
But the pci package passes throu the chroot settings to pcidb and the latter doesn't know or care about ghw snapshots - and rightly so!

Hence, we need to pass through the chroot setting only if explicitely set by client code - so if no snapshot settings are present.

Signed-off-by: Francesco Romani fromani@redhat.com

Snapshot implementation leverages chroot and transparently set it
to the unpacked snapshot root. This is the intentional behaviour
and ghw supports it.
But the `pci` package passes throu the chroot settings to `pcidb`
and the latter doesn't know or care about ghw snapshots - and rightly
so!

hence, we need to pass through the `chroot` setting only if explicitely
set by client code - so if no snapshot settings are present.

Signed-off-by: Francesco Romani <fromani@redhat.com>
Copy link
Owner

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, nice catch @fromanirh! 👍

@jaypipes jaypipes merged commit a6b3926 into jaypipes:main Nov 4, 2021
@ffromani ffromani deleted the snapshots-pcidb branch November 4, 2021 14:34
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.

2 participants