mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
nixos/nixos-enter: fix resolv.conf error handling
(cherry picked from commit 1ee3d9477b)
This commit is contained in:
committed by
github-actions[bot]
parent
60779b2fde
commit
cb15b200e5
@@ -87,7 +87,7 @@ chroot_add_resolv_conf() {
|
||||
mount --bind /etc/resolv.conf "$resolv_conf"
|
||||
}
|
||||
|
||||
chroot_add_resolv_conf "$mountPoint" || print "ERROR: failed to set up resolv.conf"
|
||||
chroot_add_resolv_conf "$mountPoint" || echo "$0: failed to set up resolv.conf" >&2
|
||||
|
||||
(
|
||||
# If silent, write both stdout and stderr of activation script to /dev/null
|
||||
|
||||
Reference in New Issue
Block a user