Bug 1132762 - RFE: Support systemd-nspawn as a chroot replacement for mock
Summary: RFE: Support systemd-nspawn as a chroot replacement for mock
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: All
OS: Other
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-08-22 03:06 UTC by Craig Ringer
Modified: 2014-10-12 21:18 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2014-10-12 21:18:10 UTC

Attachments (Terms of Use)

Description Craig Ringer 2014-08-22 03:06:40 UTC
It'd be extremely useful to permit mock to run under systemd-nspawn, instead of chroot.

Notably, this would let mock be used to run simple package test scripts that could start and stop daemons, which isn't currently possible under mock with systemd.

This is just down as "hey, this'd be nice".

Comment 1 Miroslav Suchý 2014-08-22 07:29:42 UTC
Systemd is not present on RHEL6 (which we still support), but yes - it would be nice.

Comment 2 Miroslav Suchý 2014-10-01 19:31:24 UTC
Implemeted as f05982c.

in py/mockbuild/util.py is variable:
when set to False, mock will use old code for classic chroot.
Spec file substitute that for EL6 builds.

Comment 3 Miroslav Suchý 2014-10-01 20:38:04 UTC
One additonal commit b792207.

And I find that some src.rpm have assert on building under root user.
I will try to add user into that container.

Comment 4 Miroslav Suchý 2014-10-09 09:19:37 UTC
One more commit e6017d3 with uid handling.

Comment 5 Miroslav Suchý 2014-10-12 21:18:10 UTC
Fixed in mock-1.2.0, which just landed in rawhide.

Note You need to log in before you can comment on or make changes to this bug.