Dne 07. 10. 20 v 11:47 Daniel Pocock napsal(a):
> Is Mock only intended for building things or the chroot created by Mock
> can be considered a long-lived chroot for daily use?

The original purpose is a build tool.

But I see many people to do:
  mock -r fedora-33-x86_64 shell


> With the move to Btrfs by default, is it possible that will be adapted?
>  Or can people manually manage their snapshots on their preferred
> storage platform?

There is no such plan. But contribution is welcome.

>>> The "fastest to get started" way to solve getting these chroots is to pull 
>>> a container image and extract that.
>> https://github.com/rpm-software-management/mock/wiki/Feature-container-for-bootstrap
>> But you still want to setup timezones, make sure the packages are updated 
>> there, copy some files there... Mock does all
>> of that.
> Can you also clarify which container platform is being suggested?

The mentioned feature use podman to retrieve the image and unpack the container 
to directory.

> To put all this in context, imagine the user is on Fedora 32, they saw
> the thread about Thunderbird 78.2.1 "Unpleasant Surprise" from Fedora 33
> and they want to run that in a chroot to see the impact on their profile
> and plugins.  They could create the chroot using any of the methods
> discussed, yum --installroot, Mock, container.  Maybe they want to
> snapshot or fork their ~/.thunderbird profile but have access to their
> regular ~/.gnupg setup.

Just put:

config_opts['exclude_from_homedir_cleanup'] = ['.thunderbird']
config_opts['plugin_conf']['bind_mount_enable'] = True
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/home/MSUCHY/.thunderbird',
 '/builddir/.thunderbird' ))

into ~/.config/mock.cfg

and run

mock -r fedora-32-x86_64 --isolation=simple shell

And you should have your .thunderbird directory bind mounted. Diclaimer: I did 
not test it, and I would test it first on
something less precious than my mails because Mock cleans up things at the end.
The `simple` isolation to use simple chroot() otherwise systemd-nspawn is used 
and you will not be able to run xwindows
applications.

> 
> This can be really useful for the type of problem discussed in
> Thunderbird but it can also be useful for people on non-x86 platforms
> who regularly need to test new versions of specific applications.

Did I mentioned that with Mock it is super easy to use different arches?
https://github.com/rpm-software-management/mock/wiki/Feature-forcearch


-- 
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to