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.sh35
1 files changed, 23 insertions, 12 deletions
diff --git a/testModule/module-setup.sh b/testModule/module-setup.sh
index ae30de9f..513b9068 100644
--- a/testModule/module-setup.sh
+++ b/testModule/module-setup.sh
@@ -5,12 +5,13 @@ check() {
}
depends() {
- echo base network rootfs-block bash kernel-modules systemd shutdown udev-rules debug qemu btrfs
+ echo base network rootfs-block bash kernel-modules debug
+ # systemd
return 0
}
installkernel() {
- instmods dnbd3 nbd ext4 \
+ instmods ext4 mbcache jbd2 \
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 \
@@ -20,23 +21,33 @@ installkernel() {
iptable_filter ip_tables vboxsf sg ppdev snd_intel8x0 snd_ac97_codec \
ac97_bus serio_raw snd_seq snd_seq_device i2c_piix4 pcspkr snd_pcm \
parport_pc parport snd_page_alloc snd_timer snd video soundcore e1000 \
- mperf xfs libcrc32c sd_mod crc_t10dif crct10dif_common sr_mod cdrom \
+ mperf libcrc32c sd_mod crc_t10dif crct10dif_common sr_mod cdrom \
ata_generic pata_acpi ahci libahci vboxvideo drm i2c_core ata_piix \
libata vboxguest dm_mirror dm_region_hash dm_log dm_mod
+ # Production: instmods ext4 mbcache jbd2
}
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
+
+ inst "$moddir/binaries/systemd_preserve_process_marker" /usr/bin/systemd_preserve_process_marker
+ inst "$moddir/binaries/endless" /usr/bin/endless
+ inst "$moddir/binaries/dnbd3-client" /usr/bin/dnbd3-client
+ inst "$moddir/binaries/busybox" /usr/bin/busybox
+
+ inst "$moddir/kernel_modules/dnbd3.ko" /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/dnbd3.ko
+ inst "$moddir/kernel_modules/nbd.ko" /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/nbd.ko
+
+ # NOTE: Priority has to be lower 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
+ inst_hook cmdline 1 "$moddir/hooks/cmdline.sh"
+ inst_hook pre-mount 10 "$moddir/hooks/pre-mount.sh"
+ inst_hook pre-pivot 10 "$moddir/hooks/pre-pivot.sh"
+
+ inst_multiple lsblk ping ip ifconfig sshd htop dhclient tail head cat vim \
+ touch sed lsmod insmod qemu-img qemu-nbd sleep route wget find lsof \
+ strace chroot switch_root pivot_root
+ # Production: inst_multiple insmod qemu-img qemu-nbd
return 0
}