From 70d035662839a613f6025198d423d66d7a32c7ae Mon Sep 17 00:00:00 2001 From: Sam Betts <sam@code-smash.net> Date: Mon, 16 May 2016 18:44:26 +0100 Subject: [PATCH] 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 --- imagebuild/tinyipa/finalise-tinyipa.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imagebuild/tinyipa/finalise-tinyipa.sh b/imagebuild/tinyipa/finalise-tinyipa.sh index 7d70b708e..f76b38fcd 100755 --- a/imagebuild/tinyipa/finalise-tinyipa.sh +++ b/imagebuild/tinyipa/finalise-tinyipa.sh @@ -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