Skip to content

Commit a414d33

Browse files
committed
Bug 8208 - bare metal provisioning
setup name server when prepare external dhcp server
1 parent 617ef5c commit a414d33

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎scripts/network/exdhcp/prepare_dnsmasq.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ touch /var/log/dnsmasq.log
2727
[ $? -ne 0 ] && exit_with_error "touch /var/log/dnsmasq.log failed"
2828
touch /etc/dnsmasq-resolv.conf
2929
[ $? -ne 0 ] && exit_with_error "touch /etc/dnsmasq-resolv.conf failed"
30+
echo "nameserver $dns">/etc/dnsmasq-resolv.conf
31+
[ $? -ne 0 ] && exit_with_error "echo \"nameserver $dns\">/etc/dnsmasq-resolv.conf failed"
3032
touch /var/lib/dnsmasq.trace
3133
[ $? -ne 0 ] && exit_with_error "touch /var/lib/dnsmasq.trace failed"
3234

0 commit comments

Comments
 (0)