Skip to content

Commit

Permalink
Provide debian/patches/disabled/09_fix_resolvconf_pxeboot.dpatch as 1…
Browse files Browse the repository at this point in the history
…5_remove_resolv_conf_symlink.dpatch
  • Loading branch information
mika authored and Christian Hofstaedtler committed Dec 1, 2010
1 parent a1ae878 commit 7e8b00c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions debian/patches/00list
Expand Up @@ -8,3 +8,4 @@
12_uuid_support.dpatch
13_always_display_warnings_and_failures.dpatch
14_no_blkid_on_lenny.dpatch
15_remove_resolv_conf_symlink.dpatch
@@ -1,5 +1,5 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 09_fix_resolvconf_pxeboot.dpatch by Michael Prokop <mika@grml.org>
## 15_remove_resolv_conf_symlink.dpatch by Michael Prokop <mika@grml.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: fix resolvconf handling when booting via PXE
Expand All @@ -18,16 +18,16 @@

@DPATCH@
diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking
index 72aaf12..244eeca 100755
--- a/grml/23networking
+++ b/grml/23networking
index 9554b77..70ea6e7 100755
--- a/scripts/live-bottom/23networking
+++ b/scripts/live-bottom/23networking
@@ -110,6 +110,11 @@ EOF
then
if [ -f /netboot.config ]
then
+ if [ -h /root/etc/resolv.conf ]
+ then
+ rm /root/etc/resolv.conf
+ rm /root/etc/resolv.conf
+ fi
+
# create a resolv.conf if it is not present or empty
Expand Down

0 comments on commit 7e8b00c

Please sign in to comment.