Description of problem: After login with 'ro': mktemp: failed to create file via template '/tmp/.colorlsXXX': Read-only file system bash: $TMP: ambiguous redirect Version-Release number of selected component (if applicable): systemd-216-something.
I wonder... Does this mean that systemd should remount / as rw before running emergency.service?
No, we shouldn't remount anything for the sake of some broken script. Sorry for the terseness of this bug report, it was more of a note to self while debugging a different issue. I think we should investigate what scripts give those warnings and file bugs in appropriate places. The thing with $TMP looks like a bash programming error, and the other thing can probably be fixed with a redirect do /dev/null.
The culprit is /etc/profile.d/colorls.sh, line 35 and 38.
Ok, can be done better way - although ro /tmp will likely cause other things to fail as well...
Created attachment 946731 [details] patch
(In reply to Ondrej Vasik from comment #4) > Ok, can be done better way - although ro /tmp will likely cause other things > to fail as well... Yes, bash completion barfs errors everytime TAB is pressed. Zbyszek, shouldn't emergency mode mount /tmp?
coreutils-8.22-19.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/coreutils-8.22-19.fc21
In normal setup, /tmp is tmpfs, and mounting it is fine. But /tmp could be a real filesystem, and than mounting it could hold down a partition and interfere with the tasks that one does in emergency mode. Yet another issue is that if / is mounted rw, and /tmp is *not* mounted, various scripts will scribble in the /tmp dir anyway. So maybe we should mount it, since otherwise people will get warnings about mounting over a non-empty directory. I'm not sure.
Package coreutils-8.22-19.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing coreutils-8.22-19.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-12937/coreutils-8.22-19.fc21 then log in and leave karma (feedback).
coreutils-8.22-19.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
coreutils-8.21-22.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/coreutils-8.21-22.fc20
coreutils-8.21-22.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.