aboutsummarylogtreecommitdiffstats
path: root/live_virtual
diff options
context:
space:
mode:
authorGI_Jack2019-04-26 20:52:01 -0400
committerGI_Jack2019-04-26 20:52:01 -0400
commit99b90e2e02977b79e9fd26dd5123ed537ef3636a (patch)
tree1a9ef989d9310da1d5e3371ae084da239cbee087 /live_virtual
parent0542168055b4bf5ccb3a40e17dcbbbc6d6204188 (diff)
downloadaur-99b90e2e02977b79e9fd26dd5123ed537ef3636a.tar.gz
overhauled this package. Units are re-cut from upstream block package, to
follow the original intent of the now ancient previous block hooks. Intent remians to allow the least amount of modules added to get a live os to work. This is intended to keep internal hard disks out of early user space, it boots faster, and gives more control. also added live_virtual for vm guests
Diffstat (limited to 'live_virtual')
-rwxr-xr-xlive_virtual18
1 files changed, 18 insertions, 0 deletions
diff --git a/live_virtual b/live_virtual
new file mode 100755
index 000000000000..c088ed5e7f57
--- /dev/null
+++ b/live_virtual
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+build(){
+ map add_module virtio_blk? sd_mod?
+ # virtio
+ add_checked_modules 'virtio'
+}
+
+help() {
+ cat <<HELPEOF
+This hook loads the necessary modules for virtual machine block devices.
+Detection will take place at runtime. To minimize the modules in the image, add
+the autodetect hook too.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
+