Mailinglist Archive: opensuse (818 mails)

< Previous Next >
Re: [opensuse] Howto run Apache web server on read-only root file system
On 09/01/2011 02:38 AM, Monika Kistler wrote:
When booting my system I get the following errors, due to read-only rootfs.


mv: inter-device move failed: `/tmp/apache2.PLbqAdT67tqh' to
`/etc/apache2/sysconfig.d/loadmodule.conf'; unable to remove target: Read-only
file system
/usr/share/apache2/get_module_list: line 113:
/etc/apache2/sysconfig.d/global.conf: Read-only file
system

I think you are going to have to provide a /tmp that is rw. Many processes rely on /tmp for various things during operation. Why not put /tmp on it's own partition and mount it as /tmp and rw? You will also need to check to see if there is some global setting for the 'temp' filesystem location. You may be able to simply point that to some dir on a rw partition and solve the problem that way. Others will have to weigh in on what that global setting is, if any, because I simply don't know.

Also, if you point the temp file to something other than /tmp, you may have to rebuild any applications that are configured and built relying on a /tmp being present and rw. I think the best bet is just to make a /tmp and make it rw. Also, check, but I'm fairly certain that /tmp is a designated part of LSB standard. So that would also weigh in favor of a rw /tmp.

Good luck, and anyone else that can fill in the gaps above, please chime in.

--
David C. Rankin, J.D.,P.E.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References