diff options
| author | torben | 2015-04-20 17:55:47 +0200 |
|---|---|---|
| committer | torben | 2015-04-20 17:55:47 +0200 |
| commit | 7730331a2a147a7a780d1af3e7dde28eb0e80461 (patch) | |
| tree | 4deb65491a2e6e3a6b45f1928ec5346a70eb0712 /testModule | |
| parent | print process name if its parsable (diff) | |
| download | systemd-init-7730331a2a147a7a780d1af3e7dde28eb0e80461.tar.gz systemd-init-7730331a2a147a7a780d1af3e7dde28eb0e80461.tar.xz systemd-init-7730331a2a147a7a780d1af3e7dde28eb0e80461.zip | |
Remove unneeded kernel modules.
Diffstat (limited to 'testModule')
| -rw-r--r-- | testModule/module-setup.sh | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/testModule/module-setup.sh b/testModule/module-setup.sh index 0a95f957..a31c1111 100644 --- a/testModule/module-setup.sh +++ b/testModule/module-setup.sh @@ -10,20 +10,22 @@ depends() { } installkernel() { - instmods nbd 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 \ - ip6table_security ip6table_raw ip6table_filter ip6_tables \ - iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat \ - nf_conntrack iptable_mangle iptable_security iptable_raw \ - 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 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 nbd ext4 mbcache jbd2 + # Debugging: + #instmods nbd 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 \ + # ip6table_security ip6table_raw ip6table_filter ip6_tables \ + # iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat \ + # nf_conntrack iptable_mangle iptable_security iptable_raw \ + # 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 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 nbd ext4 } install() { @@ -35,9 +37,9 @@ install() { /usr/bin/systemd-preserve-process-marker inst "$moddir/kernel_modules/dnbd3.ko" \ - /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/dnbd3.ko + /usr/lib/modules/current/extra/dnbd3.ko inst "$moddir/kernel_modules/nbd.ko" \ - /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/nbd.ko + /usr/lib/modules/current/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. @@ -47,10 +49,10 @@ install() { inst_hook pre-pivot 10 "$moddir/hooks/mount.sh" # Debugging: - inst_multiple lsblk ping ip ifconfig sshd htop dhclient tail head cat vim \ - touch sed lsmod insmod qemu-img sleep route wget find lsof strace \ - chroot switch_root pivot_root qemu-nbd + #inst_multiple lsblk ping ip ifconfig sshd htop dhclient tail head cat vim \ + # touch sed lsmod insmod qemu-img sleep route wget find lsof strace \ + # chroot switch_root pivot_root qemu-nbd # Production: - #inst_multiple insmod qemu-img qemu-nbd + inst_multiple insmod qemu-img qemu-nbd return 0 } |
