mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-28 06:23:26 +00:00
Add all modules when build xCAT-genesis-base
This commit is contained in:
parent
7f612095d0
commit
5bed3a68eb
@ -35,6 +35,16 @@ else
|
||||
DRACUTMODDIR=/usr/lib/dracut/modules.d/97xcat
|
||||
fi
|
||||
|
||||
# get all modules in the kernel
|
||||
mv ./installkernel ./default_module_list
|
||||
echo "#!/bin/bash" > ./installkernel
|
||||
#instmods
|
||||
for line in `cat /lib/modules/4.11.8-300.fc26.ppc64/modules.dep | awk -F: '{print \$1}'`; do
|
||||
basename $line >> ./installkernel;
|
||||
done
|
||||
sed -i 's/\(.*\)\.ko/instmods \1/g' ./installkernel
|
||||
chmod +x ./installkernel
|
||||
|
||||
mkdir -p $DRACUTMODDIR
|
||||
cp $DIR/* $DRACUTMODDIR
|
||||
|
||||
@ -159,6 +169,7 @@ for d in `echo $PERL_LIB_DIR`; do
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
# create the predictable naming for nics
|
||||
LIB_UDEV_RULES="/lib/udev/rules.d/"
|
||||
cp $DRACUTMODDIR/80-net-name-slot.rules /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/$BUILDARCH/fs/lib/udev/rules.d/
|
||||
|
Loading…
x
Reference in New Issue
Block a user