From 8dde7b2e89b18ad1744255d5d576f20b9b0600a7 Mon Sep 17 00:00:00 2001 From: ligc Date: Wed, 2 Jul 2014 22:22:25 -0500 Subject: [PATCH] update xCAT-genesis-builder makerpm for ppc64 platform --- xCAT-genesis-builder/buildrpm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT-genesis-builder/buildrpm b/xCAT-genesis-builder/buildrpm index aa78cb3c8..498bfa271 100755 --- a/xCAT-genesis-builder/buildrpm +++ b/xCAT-genesis-builder/buildrpm @@ -13,6 +13,17 @@ DIR=`readlink -f $DIR` DRACUTMODDIR=/usr/share/dracut/modules.d/97xcat mkdir -p $DRACUTMODDIR cp $DIR/* $DRACUTMODDIR +# For ppc64 platform, needs to remove some files, +# and some files are in different directories +if [ `uname -m` = "ppc64" ]; then + sed -i 's/dracut_install efibootmgr//' $DRACUTMODDIR/install + sed -i 's/ dmidecode//' $DRACUTMODDIR/install + sed -i 's/\/lib\/libncurses.so.5.7/\/lib64\/libncurses.so.5.7/' $DRACUTMODDIR/install + sed -i 's/\/usr\/lib\/libstdc++.so.6.0.13/\/usr\/lib64\/libstdc++.so.6.0.13/' $DRACUTMODDIR/install + sed -i 's/\/lib\/libgcc_s.so.1/\/lib64\/libgcc_s.so.1/' $DRACUTMODDIR/install + sed -i 's/\/lib\/libtinfo.so.5.7/\/lib64\/libtinfo.so.5.7/' $DRACUTMODDIR/install +fi + if [ "$HOSTOS" = "mcp" ]; then sed -i 's/mkfs.btrfs//' $DRACUTMODDIR/install sed -i 's/\/etc\/redhat-release/\/etc\/base-release \/etc\/system-release/' $DRACUTMODDIR/install