mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 04:28:40 +03:00
f7e89a59da
Without this fix, setting the shellopts in `machine.execute` is inconsitent. When no timeout is used, shellopts `set -euo pipefail` are applied to the command as expected. When a timeout is specified, the shellopts are not applied to the command itself (which is called inside a `sh -c` that doesn't inherit the shellopts) but rather to the `timeout` command, leading to the following full command: ```bash (set -euo pipefail; timeout 900 sh -c 'cmd') | (base64 --wrap 0; echo)\n ``` With this fix, this is the command we get: ```bash timeout 900 sh -c 'set -euo pipefail; false | true') | (base64 --wrap 0; echo)\n ``` |
||
---|---|---|
.. | ||
make-options-doc | ||
test-driver | ||
build-vms.nix | ||
default.nix | ||
eval-cacheable-options.nix | ||
eval-config-minimal.nix | ||
eval-config.nix | ||
from-env.nix | ||
make-channel.nix | ||
make-disk-image.nix | ||
make-ext4-fs.nix | ||
make-iso9660-image.nix | ||
make-iso9660-image.sh | ||
make-multi-disk-zfs-image.nix | ||
make-single-disk-zfs-image.nix | ||
make-squashfs.nix | ||
make-system-tarball.nix | ||
make-system-tarball.sh | ||
qemu-common.nix | ||
systemd-lib.nix | ||
systemd-types.nix | ||
systemd-unit-options.nix | ||
testing-python.nix | ||
utils.nix |