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

(cherry picked from commit 1ee3d9477b)
This commit is contained in:
Ben Wolsieffer
2022-03-18 12:19:02 -04:00
committed by github-actions[bot]
parent 60779b2fde
commit cb15b200e5

View File

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