Skip to content
Commit d6ac0097 authored by Lauri Tirkkonen's avatar Lauri Tirkkonen Committed by Zbigniew Jędrzejewski-Szmek
Browse files

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).

(cherry picked from commit 4f13e534)
(cherry picked from commit 1b7014df)
parent f720fbe4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment