1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 15:40:47 +00:00

Include VirtualBox guest modules

This commit is contained in:
Josh Curl
2016-03-31 15:35:45 -07:00
parent 529e7dab06
commit 6e9ce6aea3
4 changed files with 15 additions and 4 deletions

View File

@@ -36,6 +36,11 @@ cp assets/selinux/seusers ${INITRD_DIR}/usr/etc/selinux/ros/
cp assets/selinux/lxc_contexts ${INITRD_DIR}/usr/etc/selinux/ros/contexts/
cp assets/selinux/failsafe_context ${INITRD_DIR}/usr/etc/selinux/ros/contexts/
if [ "$ARCH" == "amd64" ]; then
KERNEL_RELEASE=$(tar xvf assets/modules.tar.gz -C ${INITRD_DIR} | cut -f4 -d/ | cut -f1 -d ' ')
depmod -a -b ${INITRD_DIR}/usr $KERNEL_RELEASE
fi
DFS_ARCH=$(docker create ${DFS_IMAGE}${SUFFIX})
trap "docker rm -fv ${DFS_ARCH}" EXIT