|
|
e9bfca |
From 88ccab22e0af7ffe4c2ffa9a01e39e5f6f693722 Mon Sep 17 00:00:00 2001
|
|
|
151578 |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
151578 |
Date: Fri, 10 Oct 2014 17:46:02 +0100
|
|
|
151578 |
Subject: [PATCH] RHEL 7: Revert "appliance: Use dhclient or dhcpcd instead of
|
|
|
151578 |
hard-coding IP address of appliance."
|
|
|
151578 |
|
|
|
151578 |
This reverts commit 67e6f32a240c7c234e6af637c1cd324b36a82cd3.
|
|
|
151578 |
---
|
|
|
151578 |
appliance/init | 15 ++++++---------
|
|
|
151578 |
appliance/packagelist.in | 7 -------
|
|
|
151578 |
2 files changed, 6 insertions(+), 16 deletions(-)
|
|
|
151578 |
|
|
|
151578 |
diff --git a/appliance/init b/appliance/init
|
|
|
e9bfca |
index f530ad3d5..1cd264e08 100755
|
|
|
151578 |
--- a/appliance/init
|
|
|
151578 |
+++ b/appliance/init
|
|
|
151578 |
@@ -120,15 +120,12 @@ shopt -u nullglob
|
|
|
151578 |
ip addr add 127.0.0.1/8 brd + dev lo scope host
|
|
|
151578 |
ip link set dev lo up
|
|
|
151578 |
|
|
|
151578 |
-if test "$guestfs_network" = 1; then
|
|
|
151578 |
- iface=$(ls -I all -I default -I lo /proc/sys/net/ipv4/conf)
|
|
|
151578 |
- touch /etc/fstab # Workaround for Ubuntu.
|
|
|
151578 |
- if dhclient --version >/dev/null 2>&1; then
|
|
|
151578 |
- dhclient $iface
|
|
|
151578 |
- else
|
|
|
151578 |
- dhcpcd $iface
|
|
|
151578 |
- fi
|
|
|
151578 |
-fi
|
|
|
151578 |
+ip addr add 169.254.2.10/16 brd + dev eth0 scope global
|
|
|
151578 |
+ip link set dev eth0 up
|
|
|
151578 |
+
|
|
|
151578 |
+ip route add default via 169.254.2.2
|
|
|
151578 |
+
|
|
|
151578 |
+echo nameserver 169.254.2.3 > /etc/resolv.conf
|
|
|
151578 |
|
|
|
e9bfca |
# Scan for MDs but don't run arrays unless all expected drives are present
|
|
|
e9bfca |
mdadm -As --auto=yes --no-degraded
|
|
|
151578 |
diff --git a/appliance/packagelist.in b/appliance/packagelist.in
|
|
|
e9bfca |
index 81a8f0dba..1e7d53481 100644
|
|
|
151578 |
--- a/appliance/packagelist.in
|
|
|
151578 |
+++ b/appliance/packagelist.in
|
|
|
151578 |
@@ -26,7 +26,6 @@ ifelse(REDHAT,1,
|
|
|
151578 |
augeas-libs
|
|
|
151578 |
cryptsetup
|
|
|
151578 |
cryptsetup-luks dnl old name used before Fedora 17
|
|
|
151578 |
- dhclient
|
|
|
151578 |
genisoimage
|
|
|
151578 |
gfs-utils
|
|
|
151578 |
gfs2-utils
|
|
|
e9bfca |
@@ -76,7 +75,6 @@ dnl iproute has been renamed to iproute2
|
|
|
151578 |
iputils-ping
|
|
|
151578 |
iputils-arping
|
|
|
151578 |
iputils-tracepath
|
|
|
151578 |
- isc-dhcp-client
|
|
|
151578 |
ldmtool
|
|
|
151578 |
libaugeas0
|
|
|
151578 |
libc-bin
|
|
|
e9bfca |
@@ -110,7 +108,6 @@ ifelse(ARCHLINUX,1,
|
|
|
151578 |
cdrkit
|
|
|
151578 |
cdrtools
|
|
|
151578 |
cryptsetup
|
|
|
151578 |
- dhclient
|
|
|
151578 |
grub
|
|
|
151578 |
hivex
|
|
|
151578 |
iproute2
|
|
|
e9bfca |
@@ -141,8 +138,6 @@ ifelse(SUSE,1,
|
|
|
151578 |
btrfsprogs
|
|
|
151578 |
cdrkit-cdrtools-compat
|
|
|
151578 |
cryptsetup
|
|
|
151578 |
- dhcpcd
|
|
|
151578 |
- dhcp-client
|
|
|
151578 |
genisoimage
|
|
|
151578 |
glibc-locale
|
|
|
151578 |
gptfdisk
|
|
|
e9bfca |
@@ -171,7 +166,6 @@ ifelse(FRUGALWARE,1,
|
|
|
151578 |
augeas
|
|
|
151578 |
cryptsetup-luks
|
|
|
151578 |
cdrkit
|
|
|
151578 |
- dhclient
|
|
|
151578 |
grub2
|
|
|
151578 |
hfsplus
|
|
|
151578 |
iproute2
|
|
|
e9bfca |
@@ -199,7 +193,6 @@ ifelse(MAGEIA,1,
|
|
|
151578 |
chkconfig /* for /etc/init.d */
|
|
|
151578 |
cdrkit-genisoimage
|
|
|
151578 |
cdrkit-isotools
|
|
|
151578 |
- dhclient
|
|
|
151578 |
extlinux
|
|
|
151578 |
gfs2-utils
|
|
|
151578 |
grub
|
|
|
151578 |
--
|
|
|
e9bfca |
2.17.1
|
|
|
151578 |
|