mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
Make changes specific for Pegas
This commit is contained in:
parent
0497e158b1
commit
fecc2298bb
@ -16,12 +16,13 @@ BUILDARCH=`uname -m`
|
||||
rpmdev-setuptree
|
||||
|
||||
#For Openpower
|
||||
if [ $BUILDARCH = "ppc64le" ]; then
|
||||
BUILDARCH="ppc64"
|
||||
fi
|
||||
|
||||
if [ -z $1 ]; then
|
||||
HOSTOS="fedora26"
|
||||
if [ $BUILDARCH = "ppc64le" ]; then
|
||||
HOSTOS="Pegas1.0"
|
||||
BUILDARCH="ppc64"
|
||||
else
|
||||
HOSTOS="fedora26"
|
||||
fi
|
||||
fi
|
||||
|
||||
# get the input files for dracut in the right place
|
||||
@ -107,6 +108,12 @@ if [ "$HOSTOS" = "mcp" ]; then
|
||||
# For ppc64 platform, needs to remove some files,
|
||||
# # and some files are in different directories
|
||||
elif [ $BUILDARCH = "ppc64" ]; then
|
||||
if [ "$HOSTOS" = "Pegas1.0" ]; then
|
||||
sed -i 's/ mkreiserfs//' $DRACUTMODDIR/install
|
||||
sed -i 's/ reiserfstune//' $DRACUTMODDIR/install
|
||||
sed -i 's/ vconfig//' $DRACUTMODDIR/install
|
||||
sed -i 's/ ntp-wait//' $DRACUTMODDIR/install
|
||||
fi
|
||||
sed -i 's/ efibootmgr//' $DRACUTMODDIR/install
|
||||
sed -i 's/ dmidecode//' $DRACUTMODDIR/install
|
||||
sed -i 's/\/lib\/terminfo\/l\/linux/\/usr\/share\/terminfo\/l\/linux/g' $DRACUTMODDIR/install
|
||||
|
@ -4,7 +4,7 @@ Version: %{?version:%{version}}%{!?version:%(cat Version)}
|
||||
Release: %{?release:%{release}}%{!?release:%(cat Release)}
|
||||
Epoch: 1
|
||||
AutoReq: false
|
||||
Requires: ipmitool screen btrfs-progs lldpad rpm-build mstflint xfsprogs nc rpmdevtools libstdc++-devel pciutils bridge-utils ntp iprutils psmisc mdadm bind-utils dosfstools usbutils libusbx
|
||||
Requires: ipmitool screen btrfs-progs lldpad rpm-build mstflint xfsprogs nc rpmdevtools libstdc++-devel pciutils bridge-utils ntp ntp-perl iprutils psmisc mdadm bind-utils dosfstools usbutils libusbx
|
||||
Prefix: /opt/xcat
|
||||
AutoProv: false
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user