How do you create a chroot environment for OpenSUSE Leap?
I have CentOS 7 and would like to install a chroot environment of OpenSUSE Leap for testing.
How do I do that?
Solution 1:
yum install mock
mock -r opensuse-leap-15.3-x86_64 shell
or if you want to build package for Leap
mock -r opensuse-leap-15.3-x86_64 your_package.src.rpm
List of configs you can use as chroot is in /etc/mock/