nspawn: EROFS for chowning mount points is not fatal (#7122)
authorLauri Tirkkonen <lotheac@iki.fi>
Tue, 24 Oct 2017 17:40:50 +0000 (20:40 +0300)
committerLennart Poettering <lennart@poettering.net>
Tue, 24 Oct 2017 17:40:50 +0000 (19:40 +0200)
commit4f13e534282414b5e58ef31a26cc5c3f06f8cb18
tree625e3ab519eaf2cc99ad5e808ff4b8c53c92497b
parente6b2d948f8f5aabf6cdede8bd39256fe83db205e
nspawn: EROFS for chowning mount points is not fatal (#7122)

This fixes --read-only with --private-users. mkdir_userns_p may return
-EROFS if either mkdir or lchown fails; lchown failing is fine as the
mount point will just be overmounted, and if mkdir fails then the
following mount() will also fail (with ENOENT).
src/nspawn/nspawn-mount.c