aboutsummarylogtreecommitdiffstats
path: root/live_firewire
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_firewire
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_firewire')
-rwxr-xr-xlive_firewire21
1 files changed, 7 insertions, 14 deletions
diff --git a/live_firewire b/live_firewire
index d8c7d8f8a393..95124927c6c6 100755
--- a/live_firewire
+++ b/live_firewire
@@ -1,22 +1,15 @@
#!/bin/bash
-
-build() {
- local filter
- local -A blockdevs
- blockdevs+=(['usb_storage?']=1 ['sd_mod?']=1 ['sr_mod?']=1)
- add_checked_modules 'drivers/usb/storage/ums-*'
- fi
-
- firewire
- if add_checked_modules '/drivers/firewire/'; then
- blockdevs+=(['firewire-sbp2?']=1 ['sd_mod?']=1 ['sr_mod?']=1)
- fi
+build(){
+ map add_module firewire-sbp2?
+ # firewire
+ add_checked_modules '/drivers/firewire/'
}
help() {
cat <<HELPEOF
-This hook loads the necessary modules for most block devices using firewire. Detection will take place at runtime. To minimize
-the modules in the image, add the autodetect hook too.
+This hook loads the necessary modules for most block devices using firewire.
+Detection will take place at runtime. To minimize the modules in the image, add
+the autodetect hook too.
HELPEOF
}