FS#52009 - [systemd] systemd-nspawn fails to --bind directories
Attached to Project:
Arch Linux
Opened by Dimos Dimoulis (dimosd) - Thursday, 01 December 2016, 03:19 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 11 December 2016, 01:13 GMT
Opened by Dimos Dimoulis (dimosd) - Thursday, 01 December 2016, 03:19 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 11 December 2016, 01:13 GMT
|
Details
I use systemd-nspawn with --bind=/tmp/.X11-unix as described
in the wiki. After the upgrade to systemd 232 in
host/container, the directory is not mounted and I get a
"Failed unmounting /tmp/.X11-unix." on container shutdown.
|
This task depends upon
Closed by Dave Reisner (falconindy)
Sunday, 11 December 2016, 01:13 GMT
Reason for closing: Fixed
Additional comments about closing: systemd-232-5
Sunday, 11 December 2016, 01:13 GMT
Reason for closing: Fixed
Additional comments about closing: systemd-232-5
btrfs subvolume snapshot / /.nspawn
systemd-nspawn -D /.nspawn --bind=/tmp/.X11-unix bash
In 231 this shows /tmp/.X11-unix in the container, in 232 /tmp is empty.
I've attached the 232 output with LOG_LEVEL=debug, and it appears that the empty /tmp is mounted after the bind mount happens, which is the wrong order.
https://github.com/systemd/systemd/issues/4789
is it possible to apply a patch for this issue? https://github.com/systemd/systemd/pull/4824
Would be awesome to have this bug fixed without waiting 6 months for the next release.
FWIW, it was exactly 100 days between 231 and 232. That's actually the longest systemd has ever gone between releases, and generally averages about a month and a half (44 days) between tags. I've asked upstream to provide a v233 before the holidays, but it doesn't sound like it'll happen.