2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-24 04:00:26 +00:00

Merge pull request #5197 from zet809/addback_ntpwait_for_genesis

Add back ntp-wait for building genesis-base on pegas
This commit is contained in:
Victor Hu
2018-05-30 14:04:30 -04:00
committed by GitHub
2 changed files with 15 additions and 1 deletions

View File

@@ -133,7 +133,6 @@ elif [ $BUILDARCH = "ppc64" ]; 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
@@ -145,6 +144,20 @@ libnss_pkgname=`find /usr/lib64/ -name libnss_dns-2*.so | xargs basename`
sed -i "s/\/lib64\/libnss_dns-2.12.so/\/usr\/lib64\/$libnss_pkgname/g" $DRACUTMODDIR/install
sed -i 's/\/lib64\/libnss_dns.so.2/\/usr\/lib64\/libnss_dns.so.2/' $DRACUTMODDIR/install
# Based on cmdlist_check, makesure the commands are included in $DRACUTMODDIR/install
if [ -e "${DRACUTMODDIR}/cmdlist_check" ]; then
miss_cmd=0
for cmd in `cat ${DRACUTMODDIR}/cmdlist_check`; do
if ! grep $cmd $DRACUTMODDIR/install; then
echo "ERROR: The required $cmd is not included in the install file to build the Genesis base package"
miss_cmd=1
fi
done
if [ "$miss_cmd" = 1 ]; then
exit 1
fi
fi
mkdir -p /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/$BUILDARCH/fs
# run dracut

View File

@@ -0,0 +1 @@
ntp-wait