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

Fix dpkg queries #156

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Fix dpkg queries #156

merged 2 commits into from
Mar 5, 2024

Conversation

dbnicholson
Copy link
Member

The ostree commits now ship with an empty /var, which means that /var/lib/dpkg/status doesn't exist. Use /usr/share/dpkg/database instead, which is what /var/lib/dpkg is a symlink to at runtime.

https://phabricator.endlessm.com/T35244

Recent ostree commits ship with an empty `/var`, which means querying
`/var/lib/dpkg/status` silently returns nothing. Instead, use the
immutable admin directory in the ostree at `/usr/share/dpkg/database`.

https://phabricator.endlessm.com/T35244
Now that the package manifest generator is independent of the `/var`
mount, it can be run from an image hook like the flatpak and ostree
manifest generators.

https://phabricator.endlessm.com/T35244
@dbnicholson dbnicholson requested review from dsd and wjt March 5, 2024 16:19
Copy link
Member

@wjt wjt left a comment

Choose a reason for hiding this comment

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

Very nice!

@wjt wjt merged commit fb5eabf into master Mar 5, 2024
2 checks passed
@wjt wjt deleted the T35244-dpkg-db-query branch March 5, 2024 16:20
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