mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
modify genesis-base version, add hwdb for lspci and udevadm
This commit is contained in:
parent
e9b165b2f2
commit
174bbc767b
@ -5,18 +5,7 @@
|
||||
# this whole dir into it somewhere (like /tmp).
|
||||
# Then run this script. The optional 1st arg should be mcp if you are building against mcp.
|
||||
|
||||
# Currently, *Fedora 22* is the only OS supported to build genesis-base for ppc64, and Centos 6.5 for x86_64
|
||||
|
||||
|
||||
# For building genesis-base based on Fedora 22 ppc64, the following steps are also needed before running this script
|
||||
#
|
||||
# 1. The Fedora 22 ppc64 can be installed either on pkvm VM or IBM Power S822LC machine.
|
||||
# 2. Install ipmitool with yum install ipmitool. It will install the default ipmitool-1.8.13.
|
||||
# 3. Download ipmitool-1.8.15 tar ball from https://sourceforge.net/projects/ipmitool/files/latest/download.
|
||||
# 4. Install gcc
|
||||
# 5. untar ipmitool-1.8.15 tar ball, cd into the top directory, then ./configure, make.
|
||||
# The ipmitool-1.8.15 binary will be under ./src/.
|
||||
# 6, replace /usr/bin/ipmitool with ./src/ipmitool
|
||||
# Currently, *Fedora 23* is the only OS supported to build genesis-base for ppc64, and Centos 6.5 for x86_64
|
||||
|
||||
HOSTOS="$1"
|
||||
DIR=`dirname $0`
|
||||
@ -118,12 +107,12 @@ elif [ $BUILDARCH = "ppc64" ]; then
|
||||
sed -i 's/\/lib\/libtinfo.so.5.7/\/lib64\/libtinfo.so.5.7/' $DRACUTMODDIR/install
|
||||
# following changes are required on Fedora 20 ppc64
|
||||
# sed -i 's/\/lib64\/libnss_dns-2.12.so/\/lib64\/libnss_dns-2.18.so/' $DRACUTMODDIR/install
|
||||
# following changes are required on Fedora 22 ppc64
|
||||
sed -i 's/\/lib64\/libnss_dns-2.12.so/\/lib64\/libnss_dns-2.21.so/' $DRACUTMODDIR/install
|
||||
# following changes are required on Fedora 23 ppc64
|
||||
sed -i 's/\/lib64\/libnss_dns-2.12.so/\/lib64\/libnss_dns-2.22.so/' $DRACUTMODDIR/install
|
||||
sed -i 's/\/lib\/libc.so.6/\/lib64\/libc.so.6/' $DRACUTMODDIR/install
|
||||
# following changes are required on Fedora 22 ppc64
|
||||
# following changes are required on Fedora 23 ppc64
|
||||
#sed -i 's/\/lib\/ld-linux.so.2/\/lib64\/ld-2.18.so/' $DRACUTMODDIR/install
|
||||
sed -i 's/\/lib\/ld-linux.so.2/\/lib64\/ld-2.21.so/' $DRACUTMODDIR/install
|
||||
sed -i 's/\/lib\/ld-linux.so.2/\/lib64\/ld-2.22.so/' $DRACUTMODDIR/install
|
||||
sed -i 's/\/lib\/libdl.so.2/\/lib64\/libdl.so.2/' $DRACUTMODDIR/install
|
||||
sed -i 's/\/lib\/libm.so.6/\/lib64\/libm.so.6/' $DRACUTMODDIR/install
|
||||
sed -i 's/\/lib\/libpthread.so.0/\/lib64\/libpthread.so.0/' $DRACUTMODDIR/install
|
||||
|
@ -623,4 +623,8 @@ dracut_install /lib/udev/rules.d/11-dm-lvm.rules
|
||||
dracut_install /lib/udev/rules.d/13-dm-disk.rules
|
||||
dracut_install /lib/udev/rules.d/69-dm-lvm-metad.rules
|
||||
dracut_install /lib/udev/rules.d/95-dm-notify.rules
|
||||
# The DB files for lspci
|
||||
dracut_install /usr/share/hwdata/pci.ids
|
||||
# The DB files for udevadm
|
||||
dracut_install /etc/udev/hwdb.bin
|
||||
dracut_install /lib64/libform.so.5 /lib64/libpanel.so.5 /lib64/libmenu.so.5 /lib64/libsysfs.so.2 /usr/sbin/iprconfig # iprconfig for IBM Power RAID configuration
|
||||
|
@ -1,4 +1,4 @@
|
||||
%define version 2.10
|
||||
%define version 2.11
|
||||
%ifarch i386 i586 i686 x86
|
||||
%define tarch x86
|
||||
%endif
|
||||
@ -13,6 +13,8 @@ BuildArch: noarch
|
||||
%define __spec_install_post :
|
||||
%define debug_package %{nil}
|
||||
%define __prelink_undo_cmd %{nil}
|
||||
# To fix the issue error: Arch dependent binaries in noarch package, the following line is needed on Fedora 23 ppc64
|
||||
%define _binaries_in_noarch_packages_terminate_build 0
|
||||
Release: snap%(date +"%Y%m%d%H%M")
|
||||
Epoch: 1
|
||||
AutoReq: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user