|
|
e76f14 |
From e2d8231c9ba4ac839f303b7e44f135506c4098fa 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
|
|
|
e76f14 |
index a36d52b..ff8f5df 100755
|
|
|
0d20ef |
--- a/appliance/init
|
|
|
0d20ef |
+++ b/appliance/init
|
|
|
e76f14 |
@@ -109,15 +109,12 @@ eval `grep -Eo 'guestfs_channel=[^[:space:]]+' /proc/cmdline`
|
|
|
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
|
|
|
e76f14 |
index 306b920..e93e5e8 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
|
|
|
e76f14 |
@@ -72,7 +71,6 @@ dnl iproute has been renamed to iproute2
|
|
|
0d20ef |
iputils-ping
|
|
|
0d20ef |
iputils-arping
|
|
|
0d20ef |
iputils-tracepath
|
|
|
0d20ef |
- isc-dhcp-client
|
|
|
0d20ef |
libaugeas0
|
|
|
0d20ef |
libc-bin
|
|
|
0d20ef |
libcap2
|
|
|
e76f14 |
@@ -102,7 +100,6 @@ ifelse(ARCHLINUX,1,
|
|
|
e76f14 |
augeas
|
|
|
0d20ef |
cdrkit
|
|
|
0d20ef |
cryptsetup
|
|
|
0d20ef |
- dhclient
|
|
|
0d20ef |
grub
|
|
|
0d20ef |
hivex
|
|
|
0d20ef |
iproute2
|
|
|
e76f14 |
@@ -131,8 +128,6 @@ ifelse(SUSE,1,
|
|
|
0d20ef |
augeas-lenses
|
|
|
0d20ef |
btrfsprogs
|
|
|
0d20ef |
cryptsetup
|
|
|
0d20ef |
- dhcpcd
|
|
|
e76f14 |
- dhcp-client
|
|
|
0d20ef |
genisoimage
|
|
|
0d20ef |
glibc-locale
|
|
|
0d20ef |
gptfdisk
|
|
|
e76f14 |
@@ -156,7 +151,6 @@ ifelse(FRUGALWARE,1,
|
|
|
e76f14 |
augeas
|
|
|
0d20ef |
cryptsetup-luks
|
|
|
0d20ef |
cdrkit
|
|
|
0d20ef |
- dhclient
|
|
|
0d20ef |
grub2
|
|
|
0d20ef |
hfsplus
|
|
|
0d20ef |
iproute2
|
|
|
e76f14 |
@@ -183,7 +177,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 |
--
|
|
|
7af31e |
1.8.3.1
|
|
|
0d20ef |
|