]> git.ipfire.org Git - thirdparty/systemd.git/commit
import: try to capture tar exit codes on failure 42081/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 May 2026 17:39:06 +0000 (18:39 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 May 2026 17:39:24 +0000 (18:39 +0100)
commit148c34dd6aa57d62079fca3c66dc1deeb2f3cbc6
treef6f3dfa1c9eb01e91c8d2d0e3378a960f2bee06e
parentb05d828b5c16606d267b3a7869329bdf7c2a4c68
import: try to capture tar exit codes on failure

TEST-13-NSPAWN.machined occasionally fails with a tar error, and it's hard
to say what the problem is at the exit code is lost. Try to capture it.

[ 34.054] systemd-importd[504]: (transfer18) Imported 92%.
[ 34.118] systemd-importd[504]: (transfer18) Failed to decode and write: Broken pipe
[ 34.119] systemd-importd[504]: (transfer18) Exiting.
[ 34.121] systemd-importd[504]: (transfer18) Failed to allocate transient user namespace: Operation not permitted
[ 34.121] systemd-importd[504]: Transfer process failed with exit code 1.

Follow-up for b6e676ce41508e2aeea22202fc8f234126177f52
src/import/import-tar.c