Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/filesystem.test
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ test_expect_success cpio "cpio" "
check_filelist
"

test_expect_failure "cpio missing" "
GENIMAGE_CPIO=/usr/bin/cpio-not-available run_genimage_root cpio.config test.cpio
"

exec_test_set_prereq mkfs.cramfs
test_expect_success mkfs_cramfs "cramfs" "
run_genimage_root cramfs.config test.cramfs &&
Expand Down
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ int systemp(struct image *image, const char *fmt, ...)
if (!shell || shell[0] == 0x0)
shell = "/bin/sh";

execl(shell, shell, "-c", buf, NULL);
execl(shell, shell, "-o", "pipefail", "-c", buf, NULL);
ret = -errno;
error("Cannot execute %s: %s\n", buf, strerror(errno));
goto err_out;
Expand Down
Loading