[systemd-bugs] [Bug 81169] ConditionNeedsUpdate should not match read-only fs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 10 05:38:04 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=81169

--- Comment #1 from Enrico Scholz <enrico.scholz at sigma-chemnitz.de> ---
I see, code contains such a check already.  Unfortunately, checking for
ST_RDONLY (--> 0x01) does not work on NFS filesystems. Check for 'access(...,
W_OK)' might be more appropriate


# strace stat -f /etc
statfs64("/etc", 88, ...  f_flags=4128})

# strace touch /etc/x
open("/etc/x", O_RDWR|O_CREAT|O_LARGEFILE, 0666) = -1 EROFS (Read-only file
system)

# systemctl status ldconfig
��� ldconfig.service - Rebuild Dynamic Linker Cache
   Loaded: loaded (/lib/systemd/system/ldconfig.service; static)
   Active: failed (Result: exit-code) since Tue 2014-06-10 15:35:20 UTC; 40min
ago
     Docs: man:ldconfig(8)
  Process: 566 ExecStart=/sbin/ldconfig -X (code=exited, status=1/FAILURE)
 Main PID: 566 (code=exited, status=1/FAILURE)

ldconfig[566]: /sbin/ldconfig: Can't create temporary cache file
/etc/ld.so.cache~: Read-only file system

# systemctl --version
systemd 215

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140710/5fd8233c/attachment.html>


More information about the systemd-bugs mailing list