mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Print debug info
This commit is contained in:
parent
a7559ce903
commit
65b89aac19
@ -171,7 +171,7 @@ configureNAT () {
|
|||||||
# Build DNS options from container /etc/resolv.conf
|
# Build DNS options from container /etc/resolv.conf
|
||||||
|
|
||||||
if [ "$DEBUG" = "Y" ]; then
|
if [ "$DEBUG" = "Y" ]; then
|
||||||
echo && echo "/etc/resolv.conf:" && echo && cat /etc/resolv.conf && echo
|
echo "/etc/resolv.conf:" && echo && cat /etc/resolv.conf && echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mapfile -t nameservers < <(grep '^nameserver' /etc/resolv.conf | sed 's/\t/ /g' | sed 's/nameserver //' | sed 's/ //g')
|
mapfile -t nameservers < <(grep '^nameserver' /etc/resolv.conf | sed 's/\t/ /g' | sed 's/nameserver //' | sed 's/ //g')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user