TinyIPA: Ensure that kernel modules are loaded at boot

Installing packages into a chroot was not something tce-load was ever
designed for, because of this it gets a little confused about loading
kernel modules when we install them. This patch manually calls depmod to
ensure that the kernel modules we install during the build process get
loaded when we boot the ramdisk.

Change-Id: I940d11f3f9f2a39cba16e121dc1809a42690d350
This commit is contained in:
Sam Betts 2016-05-16 18:44:26 +01:00
parent 83ab1bc7dd
commit 70d0356628

@ -67,6 +67,9 @@ done < $WORKDIR/build_files/finalreqs.lst
$TC_CHROOT_CMD tce-load -ic /tmp/builtin/optional/tgt.tcz
$TC_CHROOT_CMD tce-load -ic /tmp/builtin/optional/qemu-utils.tcz
# Ensure tinyipa picks up installed kernel modules
$CHROOT_CMD depmod -a `$WORKDIR/build_files/fakeuname -r`
# If flag is set install the python now
if $BUILD_AND_INSTALL_TINYIPA ; then
$CHROOT_CMD python /tmp/get-pip.py --no-wheel --no-index --find-links=file:///tmp/wheelhouse ironic_python_agent