Add some kernel modules to container
This commit is contained in:
parent
0d6de09552
commit
62a6deb134
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,7 @@ if ! which cgdelete | grep -q cgdelete; then
|
||||||
cd libcgroup-0.37.1
|
cd libcgroup-0.37.1
|
||||||
./configure
|
./configure
|
||||||
make install
|
make install
|
||||||
|
ldconfig
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create lxc configuration
|
# Create lxc configuration
|
||||||
|
@ -99,6 +100,11 @@ echo stack:pass | chroot $ROOTFS chpasswd
|
||||||
# stack requires)
|
# stack requires)
|
||||||
echo "stack ALL=(ALL) NOPASSWD: ALL" >> $ROOTFS/etc/sudoers
|
echo "stack ALL=(ALL) NOPASSWD: ALL" >> $ROOTFS/etc/sudoers
|
||||||
|
|
||||||
|
# Copy kernel modules
|
||||||
|
mkdir -p $ROOTFS/lib/modules/`uname -r`/kernel
|
||||||
|
cp -p /lib/modules/`uname -r`/modules.dep $ROOTFS/lib/modules/`uname -r`/
|
||||||
|
cp -pR /lib/modules/`uname -r`/kernel/net $ROOTFS/lib/modules/`uname -r`/kernel/
|
||||||
|
|
||||||
# Gracefully cp only if source file/dir exists
|
# Gracefully cp only if source file/dir exists
|
||||||
function cp_it {
|
function cp_it {
|
||||||
if [ -e $1 ] || [ -d $1 ]; then
|
if [ -e $1 ] || [ -d $1 ]; then
|
||||||
|
|
Loading…
Reference in a new issue