From 501561742b43edb044072ec85048bb35b0b8201a Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Wed, 25 Jan 2012 17:16:56 +0000 Subject: appliance: Switch to using 'iproute' ('ip' command) from 'net-tools' (RHBZ#784647). Change 'ifconfig' and 'netstat' commands to use 'ip' instead. 'iproute' was already included in the appliance, so this reduces the size of the appliance accordingly. --- appliance/init | 14 +++++++++----- appliance/packagelist.in | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'appliance') diff --git a/appliance/init b/appliance/init index 1d69339b..d3a61562 100755 --- a/appliance/init +++ b/appliance/init @@ -66,9 +66,13 @@ fi hwclock -u -s # Set up the network. -ifconfig lo 127.0.0.1 -ifconfig eth0 169.254.2.10 -route add default gw 169.254.2.2 +ip addr add 127.0.0.1/8 brd + dev lo scope host +ip link set dev lo up + +ip addr add 169.254.2.10/16 brd + dev eth0 scope global +ip link set dev eth0 up + +ip route add default via 169.254.2.2 # Scan for MDs. mdadm -As --auto=yes --run @@ -94,8 +98,8 @@ if grep -sq guestfs_verbose=1 /proc/cmdline; then lvm pvs lvm vgs lvm lvs - ifconfig - netstat -rn + ip a + ip r lsmod #hwclock -r date diff --git a/appliance/packagelist.in b/appliance/packagelist.in index b42c5107..2ab6b804 100644 --- a/appliance/packagelist.in +++ b/appliance/packagelist.in @@ -104,6 +104,7 @@ findutils gawk grep gzip +iproute jfsutils libxml2 lsof @@ -111,7 +112,6 @@ lvm2 lzop mdadm module-init-tools -net-tools /* Enabling this pulls out 140 extra packages into the appliance: -- cgit