Description of problem: I have a custom build environment that has relied on installing an /etc/profile.d file to configure the environment for the build: # Load compiler config_opts['files']['/etc/profile.d/zz-nwra.sh'] = """ export MODULEPATH=/opt/modulefiles/Core:$MODULEPATH module load intel """ However, with the new systemd-nspawn chroot (which I otherwise like and think is a good idea, so I'd like to use it) this fails because we no longer get a login shell. It is possible to get one back? Perhaps by still running: bash --login -c 'rpmbuild...' Not sure why this was dropped with nspawn. Version-Release number of selected component (if applicable): mock-1.4.1
FWIW, dropping bash --login came with: commit e6017d3ef9f4590c533c63241b2cf28974315b66 Author: Miroslav Suchý <msuchy> Date: Mon Oct 6 10:46:35 2014 +0200 run systemd-nspawn container as specific user [RHBZ# 1132762]
Patch from Orion merged as * 826c9d6 (HEAD -> devel, origin/devel) Use bash --login with systemd-nspawn as well (rhbz #1450516)
mock-1.4.2-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-21b345dd60
mock-1.4.2-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-3d88d9f8b5
mock-1.4.2-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-65be829503
mock-1.4.2-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-65be829503
mock-1.4.2-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-21b345dd60
mock-1.4.2-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-3d88d9f8b5
mock-1.4.2-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.4.2-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.4.2-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
This seems to have caused a regression in the way the spec file is passed: https://ci.centos.org/view/Atomic/job/fahc-rdgo/5563/consoleFull Excerpt: # /usr/bin/systemd-nspawn -q -M b3832f72993346d9b18be4eb6313d2c0 -D /var/lib/mock/fedora-26-x86_64-mockchain-22882/root --private-network --setenv=LANG=en_GB.UTF-8 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOSTNAME=mock --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=HOME=/builddir --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PS1=<mock-chroot> \s-\v\$ -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps --define __spec_check_template exit 0; /builddir/build/SPECS/rpm-ostree.spec ... 16:40:00 error: failed to stat //exit: No such file or directory 16:40:00 Building target platforms: x86_64 16:40:00 Building for target x86_64 16:40:00 bash: /builddir/build/SPECS/rpm-ostree.spec: Permission denied It looks like it needs another level of quoting to be passed correctly.
Posted potential untested fix here: https://github.com/rpm-software-management/mock/pull/91