Commit 19a40535 authored by Arie Peterson's avatar Arie Peterson 🐚
Browse files

Load kernel modules to tmpfs mount

parent 5847bf1d
......@@ -337,6 +337,10 @@ unset fsckfix
mount -n -o move /sys ${rootmnt}/sys
mount -n -o move /proc ${rootmnt}/proc
mount -t tmpfs -o size=100M,mode=0700 modules ${rootmnt}/lib/modules/
cd ${rootmnt}/lib/modules/
tar xfz /modules.tgz
# Chain to real filesystem
if [ -z "$drop_caps" ] && command -v switch_root >/dev/null 2>&1; then
exec switch_root ${rootmnt} ${init} "$@" <${rootmnt}/dev/console >${rootmnt}/dev/console
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment