2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 11:12:04 +00:00

Update docker build containers to CentOS8 (3)

This commit is contained in:
Mark Gurevich 2022-05-13 13:05:11 -04:00
parent 5d34077402
commit 4a6ccf0ca5
17 changed files with 16 additions and 6 deletions

View File

@ -70,7 +70,6 @@ touch /etc/xcat/genesis-scripts-updated
%Files
%defattr(-,root,root)
#%dir %attr(-,root,root) %{rpminstallroot}
%{rpminstallroot}/usr/bin/allowcred.awk
%{rpminstallroot}/usr/bin/bmcsetup
%{rpminstallroot}/usr/bin/raidcmd

View File

@ -11,7 +11,7 @@ Vendor: IBM Corp.
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Prefix: /opt/xcat
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
PreReq: xCAT-client = 4:%{version}-%{release}
Requires: xCAT-client = 4:%{version}-%{release}
%ifos linux
BuildArch: noarch

View File

@ -1,3 +1,4 @@
#!/bin/bash
#
# Setup hostname
#

View File

@ -1,3 +1,4 @@
#!/bin/bash
#
# Setup hostname
#

View File

@ -1,4 +1,4 @@
#!/bin/bash
# Get hostname
export HOSTNAME=$(host $IP 2>/dev/null | awk '{print $5}' | awk -F. '{print $1}')
hostname $HOSTNAME

View File

@ -1,4 +1,4 @@
#!/bin/bash
# Get hostname
export HOSTNAME=$(host $IP 2>/dev/null | awk '{print $5}' | awk -F. '{print $1}')
hostname $HOSTNAME

View File

@ -1,3 +1,4 @@
#!/bin/bash
#the nic name might change between the installation and 1st boot
#active all the nics with network link during system boot

View File

@ -1,3 +1,4 @@
#!/bin/bash
# The nic name might change between the installation and 1st boot
# Active all the nics with network link during system boot

View File

@ -1,3 +1,4 @@
#!/bin/bash
#
# Run xCAT post install
#

View File

@ -1,3 +1,4 @@
#!/bin/bash
#
# Run xCAT post install
#

View File

@ -1,3 +1,4 @@
#!/bin/bash
export XCATDEBUGMODE="#TABLEBLANKOKAY:site:key=xcatdebugmode:value#"
if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then
set -x

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#-------------------------------------------------------
=head1

View File

@ -1,4 +1,4 @@
#/bin/sh
#!/bin/sh
#modify the grub.cfg to prevent nic consistent network renameing
grep -E -q "net.ifnames=0" /etc/sysconfig/grub || sed -i '/^GRUB_CMDLINE_LINUX=.*/{s/"$/ net.ifnames=0"/}' /etc/sysconfig/grub
grep -E -q "net.ifnames=0" /etc/default/grub || sed -i '/^GRUB_CMDLINE_LINUX=.*/{s/"$/ net.ifnames=0"/}' /etc/default/grub

View File

@ -1,2 +1,3 @@
#!/bin/bash
echo "Setting Boot Manager for the next boot."
efibootmgr -c -l \\EFI\\redhat\\grub.efi -L Linux

View File

@ -1,3 +1,4 @@
#!/bin/bash
#step 1, determine the realm and such
DNSDOMAIN=`dnsdomainname`
UPDNSDOMAIN=`echo $DNSDOMAIN|tr a-z A-Z`

View File

@ -1,3 +1,4 @@
#!/bin/bash
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
if [ -n "$LOGLABEL" ]; then
log_label=$LOGLABEL

View File

@ -1,3 +1,4 @@
#!/bin/bash
function hashencode(){
local str_map="$1"
echo `echo $str_map | sed 's/\./xDOTx/g' | sed 's/:/xCOLONx/g' | sed 's/,/:xCOMMAx/g' | sed 's/-/xHYPHENx/g'`