From: Yu Watanabe Date: Sun, 16 Mar 2025 21:53:46 +0000 (+0900) Subject: nspawn: introduce --cleanup option (#34776) X-Git-Tag: v258-rc1~1069 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=369c2325382cac3f308a56fdff6e0e11d2162832;p=thirdparty%2Fsystemd.git nspawn: introduce --cleanup option (#34776) This is useful when the previous invocation is unexpectedly killed. Otherwise, if systemd-nspawn is killed forcibly, then unix-export directory is not cleared and unmounted, and the subsequent invocation will fail. E.g. ``` [ 18.895515] TEST-13-NSPAWN.sh[645]: + machinectl start long-running [ 18.945703] systemd-nspawn[1387]: Mount point '/run/systemd/nspawn/unix-export/long-running' exists already, refusing. [ 18.949236] systemd[1]: systemd-nspawn@long-running.service: Failed with result 'exit-code'. [ 18.949743] systemd[1]: Failed to start systemd-nspawn@long-running.service. ``` --- 369c2325382cac3f308a56fdff6e0e11d2162832