[issue1234] dns bootoption bug

6opo9a bts at bts.grml.org
Sun Mar 17 14:53:21 CET 2013


6opo9a <alexander.tugov at gmail.com> added the comment:

Maybe try to do like this (according https://github.com/grml/live-boot-
grml/blob/master/debian/patches/26_support_dns_bootoption.patch):
1) +++ live-boot-grml/scripts/boot/9990-cmdline-old
leave only:
+dns=*)
+DNSSERVERS="${_PARAMETER#*=}"
+export DNSSERVERS
;;
2) in +++ live-boot-grml/scripts/boot/9990-grml-networking.sh make:
+# dns bootoption
+if [ -n "$DNSSERVERS" ]
+then
+	# disable any existing entries
+	if [ -r $RESOLVCONF ]
+	then
+		sed -i 's/nameserver/# nameserver/' $RESOLVCONF
+	fi
+       DNSSERVERS=`echo $DNSSERVERS| sed 's/,/ /g'`
+	for i in $DNSSERVERS
+	do
+		echo "nameserver $i" >> $RESOLVCONF
+	done
+fi
+

----------
assignedto: bionix
messages: 4515, 4521, 4522, 4537
nosy: 6opo9a, bionix
priority: bug
status: chatting
title: dns bootoption bug

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1234>
_____________________________________


More information about the Bugs-changes mailing list