BTS

Message4537

Author 6opo9a
Recipients bionix
Date 2013-03-17.13:53:21
Content
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
+
History
Date User Action Args
2013-03-17 13:53:216opo9asetrecipients: + bionix
2013-03-17 13:53:216opo9asetmessageid: <1363528401.59.0.486872120135.issue1234@bts.grml.org>
2013-03-17 13:53:216opo9alinkissue1234 messages
2013-03-17 13:53:216opo9acreate