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
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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
fi

# 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