From d49c8827783044bf26f253b70c578ef811aebb7e Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 26 Feb 2013 04:53:56 +0000 Subject: [PATCH] support imaged provisioning. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15261 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/efibootmgr | 2 ++ xCAT/postscripts/runxcatpost | 1 + xCAT/postscripts/updatenetwork | 6 ++++++ 3 files changed, 9 insertions(+) create mode 100644 xCAT/postscripts/efibootmgr create mode 100644 xCAT/postscripts/runxcatpost create mode 100644 xCAT/postscripts/updatenetwork diff --git a/xCAT/postscripts/efibootmgr b/xCAT/postscripts/efibootmgr new file mode 100644 index 000000000..959f0a548 --- /dev/null +++ b/xCAT/postscripts/efibootmgr @@ -0,0 +1,2 @@ +echo "Setting Boot Manager for the next boot.\n"; +efibootmgr -c -l \\EFI\\redhat\\grub.efi -L Linux \ No newline at end of file diff --git a/xCAT/postscripts/runxcatpost b/xCAT/postscripts/runxcatpost new file mode 100644 index 000000000..0dbf33f5e --- /dev/null +++ b/xCAT/postscripts/runxcatpost @@ -0,0 +1 @@ +/opt/xcat/xcatdsklspost \ No newline at end of file diff --git a/xCAT/postscripts/updatenetwork b/xCAT/postscripts/updatenetwork new file mode 100644 index 000000000..9a2cefd4b --- /dev/null +++ b/xCAT/postscripts/updatenetwork @@ -0,0 +1,6 @@ +. /tmp/post-install/variables.txt + +echo "Updating hostname to $HOSTNAME" +sed -i "s/HOSTNAME=.*/HOSTNAME=$HOSTNAME/g" /etc/sysconfig/network + +hostname $HOSTNAME \ No newline at end of file