|
|
90a56e |
From 1b565df653cff8421e7af40728e27c79d563d474 Mon Sep 17 00:00:00 2001
|
|
|
0d20ef |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
0d20ef |
Date: Fri, 10 Oct 2014 17:46:02 +0100
|
|
|
0d20ef |
Subject: [PATCH] RHEL 7: Revert "appliance: Use dhclient or dhcpcd instead of
|
|
|
0d20ef |
hard-coding IP address of appliance."
|
|
|
0d20ef |
|
|
|
0d20ef |
This reverts commit 67e6f32a240c7c234e6af637c1cd324b36a82cd3.
|
|
|
0d20ef |
---
|
|
|
e76f14 |
appliance/init | 15 ++++++---------
|
|
|
e76f14 |
appliance/packagelist.in | 7 -------
|
|
|
e76f14 |
2 files changed, 6 insertions(+), 16 deletions(-)
|
|
|
0d20ef |
|
|
|
0d20ef |
diff --git a/appliance/init b/appliance/init
|
|
|
46ce2f |
index 624e20fa6..2e18be4fe 100755
|
|
|
0d20ef |
--- a/appliance/init
|
|
|
0d20ef |
+++ b/appliance/init
|
|
|
90a56e |
@@ -118,15 +118,12 @@ shopt -u nullglob
|
|
|
0d20ef |
ip addr add 127.0.0.1/8 brd + dev lo scope host
|
|
|
0d20ef |
ip link set dev lo up
|
|
|
0d20ef |
|
|
|
e76f14 |
-if test "$guestfs_network" = 1; then
|
|
|
e76f14 |
- iface=$(ls -I all -I default -I lo /proc/sys/net/ipv4/conf)
|
|
|
e76f14 |
- touch /etc/fstab # Workaround for Ubuntu.
|
|
|
0d20ef |
- if dhclient --version >/dev/null 2>&1; then
|
|
|
e76f14 |
- dhclient $iface
|
|
|
0d20ef |
- else
|
|
|
e76f14 |
- dhcpcd $iface
|
|
|
0d20ef |
- fi
|
|
|
0d20ef |
-fi
|
|
|
0d20ef |
+ip addr add 169.254.2.10/16 brd + dev eth0 scope global
|
|
|
0d20ef |
+ip link set dev eth0 up
|
|
|
0d20ef |
+
|
|
|
0d20ef |
+ip route add default via 169.254.2.2
|
|
|
0d20ef |
+
|
|
|
0d20ef |
+echo nameserver 169.254.2.3 > /etc/resolv.conf
|
|
|
0d20ef |
|
|
|
0d20ef |
# Scan for MDs.
|
|
|
0d20ef |
mdadm -As --auto=yes --run
|
|
|
0d20ef |
diff --git a/appliance/packagelist.in b/appliance/packagelist.in
|
|
|
46ce2f |
index 961a2a3b1..b437b02e0 100644
|
|
|
0d20ef |
--- a/appliance/packagelist.in
|
|
|
0d20ef |
+++ b/appliance/packagelist.in
|
|
|
e76f14 |
@@ -26,7 +26,6 @@ ifelse(REDHAT,1,
|
|
|
e76f14 |
augeas-libs
|
|
|
0d20ef |
cryptsetup
|
|
|
0d20ef |
cryptsetup-luks dnl old name used before Fedora 17
|
|
|
0d20ef |
- dhclient
|
|
|
0d20ef |
genisoimage
|
|
|
e76f14 |
gfs-utils
|
|
|
e76f14 |
gfs2-utils
|
|
|
90a56e |
@@ -73,7 +72,6 @@ dnl iproute has been renamed to iproute2
|
|
|
0d20ef |
iputils-ping
|
|
|
0d20ef |
iputils-arping
|
|
|
0d20ef |
iputils-tracepath
|
|
|
0d20ef |
- isc-dhcp-client
|
|
|
90a56e |
ldmtool
|
|
|
0d20ef |
libaugeas0
|
|
|
0d20ef |
libc-bin
|
|
|
90a56e |
@@ -105,7 +103,6 @@ ifelse(ARCHLINUX,1,
|
|
|
0d20ef |
cdrkit
|
|
|
90a56e |
cdrtools
|
|
|
0d20ef |
cryptsetup
|
|
|
0d20ef |
- dhclient
|
|
|
0d20ef |
grub
|
|
|
0d20ef |
hivex
|
|
|
0d20ef |
iproute2
|
|
|
90a56e |
@@ -133,8 +130,6 @@ ifelse(SUSE,1,
|
|
|
0d20ef |
augeas-lenses
|
|
|
0d20ef |
btrfsprogs
|
|
|
0d20ef |
cryptsetup
|
|
|
0d20ef |
- dhcpcd
|
|
|
e76f14 |
- dhcp-client
|
|
|
0d20ef |
genisoimage
|
|
|
0d20ef |
glibc-locale
|
|
|
0d20ef |
gptfdisk
|
|
|
90a56e |
@@ -160,7 +155,6 @@ ifelse(FRUGALWARE,1,
|
|
|
e76f14 |
augeas
|
|
|
0d20ef |
cryptsetup-luks
|
|
|
0d20ef |
cdrkit
|
|
|
0d20ef |
- dhclient
|
|
|
0d20ef |
grub2
|
|
|
0d20ef |
hfsplus
|
|
|
0d20ef |
iproute2
|
|
|
90a56e |
@@ -187,7 +181,6 @@ ifelse(MAGEIA,1,
|
|
|
0d20ef |
chkconfig /* for /etc/init.d */
|
|
|
0d20ef |
cdrkit-genisoimage
|
|
|
0d20ef |
cdrkit-isotools
|
|
|
0d20ef |
- dhclient
|
|
|
0d20ef |
extlinux
|
|
|
0d20ef |
gfs2-utils
|
|
|
0d20ef |
grub
|
|
|
0d20ef |
--
|
|
|
46ce2f |
2.13.4
|
|
|
0d20ef |
|