From dd365bf0a2aaa59e7798abccc132492171e0a2f8 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 7 Jan 2013 19:53:48 +0000 Subject: [PATCH] Fix xCAT-genesis (current gen) to survive recent UXSPI changes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot2/ifup | 4 ++++ xCAT-nbroot2/install | 1 + xCAT-nbroot2/setupimmnic | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 xCAT-nbroot2/ifup diff --git a/xCAT-nbroot2/ifup b/xCAT-nbroot2/ifup new file mode 100755 index 000000000..e5d7491e5 --- /dev/null +++ b/xCAT-nbroot2/ifup @@ -0,0 +1,4 @@ +if [ "${1%?}" = "usb" ]; then + /sbin/setupimmnic +fi +exit 0 diff --git a/xCAT-nbroot2/install b/xCAT-nbroot2/install index a3a49a9d5..d26402c10 100755 --- a/xCAT-nbroot2/install +++ b/xCAT-nbroot2/install @@ -609,6 +609,7 @@ inst "$moddir/rsyslog.conf" "/etc/rsyslog.conf" inst "$moddir/99-imm.rules" "/etc/udev/rules.d/99-imm.rules" inst "$moddir/98-mlx.rules" "/etc/udev/rules.d/98-mlx.rules" inst "$moddir/setupimmnic" "/sbin/setupimmnic" +inst "$moddir/ifup" "/bin/ifup" inst "$moddir/loadmlxeth" "/sbin/loadmlxeth" dracut_install /sbin/rpc.statd /usr/sbin/sm-notify /etc/netconfig rpcbind /etc/host.conf /usr/sbin/rpc.idmapd dracut_install ps free find #debug diff --git a/xCAT-nbroot2/setupimmnic b/xCAT-nbroot2/setupimmnic index a8783e98c..6253727fb 100755 --- a/xCAT-nbroot2/setupimmnic +++ b/xCAT-nbroot2/setupimmnic @@ -1,3 +1,4 @@ #!/bin/sh /sbin/ip link set usb0 up -/sbin/ip addr add dev usb0 169.254.95.120/16 +/sbin/ip addr add dev usb0 169.254.95.120/24 +/sbin/ip route add 169.254.95.120/24 dev usb0