Commit 7fb2d097 authored by Mart van Santen's avatar Mart van Santen 🤖
Browse files

Merge branch '10-encrypted-vms-lack-modules' into 'master'

Resolve "Encrypted VMs lack modules"

Closes #10

See merge request !7
parents 5847bf1d 95c11400
......@@ -337,6 +337,12 @@ unset fsckfix
mount -n -o move /sys ${rootmnt}/sys
mount -n -o move /proc ${rootmnt}/proc
if [ -e /modules.tgz ]; then
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
Markdown is supported
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