Commit 95c11400 authored by Arie Peterson's avatar Arie Peterson 🐚
Browse files

Create tmpfs mount only if modules tarball is present

parent 19a40535
...@@ -337,9 +337,11 @@ unset fsckfix ...@@ -337,9 +337,11 @@ unset fsckfix
mount -n -o move /sys ${rootmnt}/sys mount -n -o move /sys ${rootmnt}/sys
mount -n -o move /proc ${rootmnt}/proc mount -n -o move /proc ${rootmnt}/proc
mount -t tmpfs -o size=100M,mode=0700 modules ${rootmnt}/lib/modules/ if [ -e /modules.tgz ]; then
cd ${rootmnt}/lib/modules/ mount -t tmpfs -o size=100M,mode=0700 modules ${rootmnt}/lib/modules/
tar xfz /modules.tgz cd ${rootmnt}/lib/modules/
tar xfz /modules.tgz
fi
# Chain to real filesystem # Chain to real filesystem
if [ -z "$drop_caps" ] && command -v switch_root >/dev/null 2>&1; then if [ -z "$drop_caps" ] && command -v switch_root >/dev/null 2>&1; then
......
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