summaryrefslogtreecommitdiffstats
path: root/testModule/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testModule/module-setup.sh')
-rw-r--r--testModule/module-setup.sh33
1 files changed, 19 insertions, 14 deletions
diff --git a/testModule/module-setup.sh b/testModule/module-setup.sh
index 0f43268b..ae30de9f 100644
--- a/testModule/module-setup.sh
+++ b/testModule/module-setup.sh
@@ -5,24 +5,13 @@ check() {
}
depends() {
- echo base bash kernel-modules systemd shutdown udev-rules debug qemu btrfs
- return 0
-}
-
-install() {
- # Loads globally needed useful functions or fixes some native dracut ones.
- inst_simple "$moddir/library.sh" /usr/lib/test-library.sh
- # NOTE: Priority has to be greater than the network cmdline parsing hooks
- # since we have to modify the some kernel parameter before.
- inst_hook cmdline 100 "$moddir/parse-ip.sh"
- #inst_simple "$moddir/busybox" /usr/bin/busybox
- #inst_hook pre-mount 20 "$moddir/setup_network.sh"
- inst_multiple ping ip ifconfig sshd htop dhclient tail head cat vim touch sed
+ echo base network rootfs-block bash kernel-modules systemd shutdown udev-rules debug qemu btrfs
return 0
}
installkernel() {
- instmods ip6t_rpfilter ip6t_REJEiCT ipt_REJECT xt_conntrack ebtable_nat \
+ instmods dnbd3 nbd ext4 \
+ ip6t_rpfilter ip6t_REJEiCT ipt_REJECT xt_conntrack ebtable_nat \
ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat \
nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle \
ip6table_security ip6table_raw ip6table_filter ip6_tables \
@@ -35,3 +24,19 @@ installkernel() {
ata_generic pata_acpi ahci libahci vboxvideo drm i2c_core ata_piix \
libata vboxguest dm_mirror dm_region_hash dm_log dm_mod
}
+
+install() {
+ # Loads globally needed useful functions or fixes some native dracut ones.
+ inst "$moddir/library.sh" /usr/lib/test-library.sh
+ inst "$moddir/dnbd3-client" /usr/bin/dnbd3-client
+ inst "$moddir/dnbd3.ko" /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/dnbd3.ko
+ inst "$moddir/nbd.ko" /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/nbd.ko
+ # NOTE: Priority has to be greater than the network cmdline parsing hooks
+ # since we have to modify the some kernel parameter before.
+ inst_hook cmdline 100 "$moddir/parse-ip.sh"
+ inst_hook pre-mount 100 "$moddir/mount-dnbd3.sh"
+ inst_simple "$moddir/busybox" /usr/bin/busybox
+ #inst_hook pre-mount 20 "$moddir/setup_network.sh"
+ inst_multiple lsblk ping ip ifconfig sshd htop dhclient tail head cat vim touch sed lsmod insmod qemu-img qemu-nbd sleep
+ return 0
+}