nixos/nixos-enter: fix resolv.conf error handling

This commit is contained in:
Ben Wolsieffer 2022-03-18 12:19:02 -04:00
parent ac0522d62a
commit 1ee3d9477b

View file

@ -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