mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
nixos/nixos-enter: fix resolv.conf error handling
This commit is contained in:
@@ -88,7 +88,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