From bcf3d6252c4c21c6b47cf1b48827d24a3325c750 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Mon, 20 Feb 2017 00:57:30 -0500 Subject: [PATCH] Fix issue 2475 to add perl library for ntp-wait --- xCAT-genesis-builder/buildrpm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT-genesis-builder/buildrpm b/xCAT-genesis-builder/buildrpm index 2bad105ca..f301961a3 100755 --- a/xCAT-genesis-builder/buildrpm +++ b/xCAT-genesis-builder/buildrpm @@ -188,6 +188,17 @@ echo Expanding the initramfs into /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboo cd /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/$BUILDARCH/fs zcat /tmp/xcatgenesis.$$.rfs|cpio -dumi +# add the perl library +PERL_LIB_DIR="/usr/share/perl5 /usr/lib64/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5" +for d in `echo $PERL_LIB_DIR`; do + if [ -e $d ]; then + echo Adding perl libary "$d" + TEMP_DIR=/tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/$BUILDARCH/fs/"$d" + mkdir -p $TEMP_DIR + cp -a -t $TEMP_DIR $d/. + fi +done + if [ $? -ne 0 ]; then echo "ERROR - expanding the initramfs, please correct the issues and try again" exit 1