Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
libstorage-ng probing didn't exactly work because it was not able to recognize it was running in a chroot. For example, the mount points were calculated with the full path from the host system (eg.
/mnt/home
).Solution
Set rootprefix for libstorage-ng, so mount points and other aspects are calculated correctly thanks to the changes introduced recently at libstorage-ng like:
Related changes
For probing to work, the container must contain several basic tools. Almost for sure the package
e2fsprogs
will be needed since it includes the commandlsattr
. But apart from that, thelvm2
package is needed if LVM is used in the system,btrfsprogs
is needed if there is some Btrfs file-system, and so on.This adds a reasonable set of tools to the container images and is very likely needed for libstorage-ng probing to actually work:
https://build.opensuse.org/request/show/991060
Testing
Tested manually with modules like yast2-bootloader and yast2-kdump and with the Partitioner.