chiark / gitweb /
nspawn: ignore EEXIST when creating mount point
authorDave Reisner <dreisner@archlinux.org>
Wed, 29 Oct 2014 17:32:43 +0000 (13:32 -0400)
committerDave Reisner <dreisner@archlinux.org>
Wed, 29 Oct 2014 17:42:51 +0000 (13:42 -0400)
commit1ab19cb167b32967556eefd8f6d3df0e3de7d67d
treee3e5cf32ad2010decafd6c666c8ebd102dcee1e8
parentef7b6c0190fefaacf6d8f8e1a6dda4ba8b98091b
nspawn: ignore EEXIST when creating mount point

A combination of commits f3c80515c and 79d80fc14 cause nspawn to
silently fail with a commandline such as:

  # systemd-nspawn -D /build/extra-x86_64 --bind=/usr

strace shows the culprit:

  [pid 27868] writev(2, [{"Failed to create mount point /build/extra-x86_64/usr: File exists", 82}, {"\n", 1}], 2) = 83
src/nspawn/nspawn.c