9c6c825691
If overlay fs is available, use it for /lib/modules. This way the whole /lib/modules will be writable and changes (like extra modules) will persist in TemplateVM/StandaloneVM. In practice, this will allow to conveniently build in-vm kernel modules, even for dom0-provided kernels. QubesOS/qubes-issues#2908
35 lines
451 B
Bash
35 lines
451 B
Bash
#!/bin/bash
|
|
|
|
check() {
|
|
return 255
|
|
}
|
|
|
|
depends() {
|
|
echo dm
|
|
return 0
|
|
}
|
|
|
|
installkernel() {
|
|
hostonly='' instmods overlay
|
|
}
|
|
|
|
install() {
|
|
inst $moddir/init.sh /init
|
|
inst_multiple \
|
|
basename \
|
|
readlink \
|
|
uname \
|
|
grep \
|
|
kmod \
|
|
modprobe \
|
|
ln \
|
|
switch_root \
|
|
mount \
|
|
umount \
|
|
mkdir \
|
|
rmdir \
|
|
sleep \
|
|
sfdisk \
|
|
mkswap
|
|
}
|