Blame 0038-ifcfg-fix-resolv.conf.patch
|
Harald Hoyer |
0c26bf |
From 335bb5a35b35d1bc81dc880fee67e247222c1f58 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
0c26bf |
From: Will Woods <wwoods@redhat.com>
|
|
Harald Hoyer |
0c26bf |
Date: Tue, 1 May 2012 14:08:34 -0400
|
|
Harald Hoyer |
0c26bf |
Subject: [PATCH] ifcfg: fix resolv.conf
|
|
Harald Hoyer |
0c26bf |
|
|
Harald Hoyer |
0c26bf |
/etc/net.*.resolv.conf is not a useful filename; copy it to resolv.conf
|
|
Harald Hoyer |
0c26bf |
---
|
|
Harald Hoyer |
0c26bf |
modules.d/45ifcfg/write-ifcfg.sh | 2 +-
|
|
Harald Hoyer |
0c26bf |
1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)
|
|
Harald Hoyer |
0c26bf |
|
|
Harald Hoyer |
0c26bf |
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
|
|
Harald Hoyer |
0c26bf |
index b81ac39..f612762 100755
|
|
Harald Hoyer |
0c26bf |
--- a/modules.d/45ifcfg/write-ifcfg.sh
|
|
Harald Hoyer |
0c26bf |
+++ b/modules.d/45ifcfg/write-ifcfg.sh
|
|
Harald Hoyer |
0c26bf |
@@ -152,7 +152,7 @@ echo "files /etc/sysconfig/network-scripts" >> /run/initramfs/rwtab
|
|
Harald Hoyer |
0c26bf |
echo "files /var/lib/dhclient" >> /run/initramfs/rwtab
|
|
Harald Hoyer |
0c26bf |
{
|
|
Harald Hoyer |
0c26bf |
cp /tmp/net.* /run/initramfs/
|
|
Harald Hoyer |
0c26bf |
- cp /tmp/net.$netif.resolv.conf /run/initramfs/state/etc/
|
|
Harald Hoyer |
0c26bf |
+ cp /tmp/net.$netif.resolv.conf /run/initramfs/state/etc/resolv.conf
|
|
Harald Hoyer |
0c26bf |
cp -a -t /run/initramfs/state/etc/sysconfig/network-scripts/ /tmp/ifcfg/*
|
|
Harald Hoyer |
0c26bf |
cp /tmp/ifcfg-leases/* /run/initramfs/state/var/lib/dhclient
|
|
Harald Hoyer |
0c26bf |
} > /dev/null 2>&1
|