Skip to content

Commit

Permalink
systemd: Make sure subshell returns success
Browse files Browse the repository at this point in the history
Without that older privileged containers may cause the subshell to
return 1 causing the whole generator to exit due to it running under -eu.

Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Aug 4, 2023
1 parent d20b40d commit afc9775
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distrobuilder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,8 @@ fix_systemd_override_unit() {
[ "${systemd_version}" -ge 231 ] && echo "ReadWritePaths=";
[ "${systemd_version}" -ge 254 ] && echo "ImportCredential=";
fi
true;
} > "${dropin_dir}/zzz-lxc-service.conf"
}
Expand Down

0 comments on commit afc9775

Please sign in to comment.