We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently installing as instructed in the man at: https://github.com/containers/qm/blob/main/qm.8.md?plain=1#L68 Results in an error:
# dnf install --installroot=/usr/lib/qm/rootfs setools-console error: cannot open Packages database in /usr/lib/qm/rootfs/var/lib/rpm Error: Error: rpmdb open failed
Probably since /usr/lib/qm/rootfs is just partial rootfs, and /etc/qm and /var/qm may be needed as well.
/usr/lib/qm/rootfs
/etc/qm
/var/qm
Explore the way to handle it and document it properly.
The text was updated successfully, but these errors were encountered:
@aesteve-rh Probably this one will do the trick
dnf install --setopt=reposdir=/etc/qm/yum.repos.d --installroot=/usr/lib/qm/rootfs -y <pkg>
Did you give it a try?
Sorry, something went wrong.
Yeah, it does not work for me either.
The reason it stopped working is that we moved /var/lib/rpm to /usr/share/rpm, and put an absolute symlink /var/lib/rpm -> /usr/share/rpm. Now it was changed to a relative one https://gitlab.com/CentOS/automotive/src/automotive-image-builder/-/merge_requests/181.
/var/lib/rpm
/usr/share/rpm
/var/lib/rpm -> /usr/share/rpm
When the symlink is fixed (you can fix it in place as well with ln -sf ../../usr/share/rpm /var/qm/lib/rpm) - the above command will work. BUT, /var and /etc in qm rootfs are not the correct ones, and we've been doing it wrong until now. Alex has suggested a script that would do it the right way: https://gitlab.com/CentOS/automotive/src/automotive-image-builder/-/merge_requests/181#note_2294016285
ln -sf ../../usr/share/rpm /var/qm/lib/rpm
/var
/etc
No branches or pull requests
Currently installing as instructed in the man at: https://github.com/containers/qm/blob/main/qm.8.md?plain=1#L68
Results in an error:
Probably since
/usr/lib/qm/rootfs
is just partial rootfs, and/etc/qm
and/var/qm
may be needed as well.Explore the way to handle it and document it properly.
The text was updated successfully, but these errors were encountered: