]> git.ipfire.org Git - ipfire-2.x.git/blame - src/installer/dracut-module/module-setup.sh
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / src / installer / dracut-module / module-setup.sh
CommitLineData
5fca8d27
MT
1#!/bin/bash
2# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3# ex: ts=8 sw=4 sts=4 et filetype=sh
4
5# called by dracut
6check() {
7 return 255
8}
9
10# called by dracut
11depends() {
12 echo base bash mdraid shutdown
13 return 0
14}
15
16# called by dracut
17install() {
5315fae6 18 inst /etc/system-release
5fca8d27
MT
19 inst /usr/bin/installer
20 inst /usr/bin/downloadsource.sh
681c9bbe 21 inst /usr/bin/execute-postinstall.sh
5fca8d27
MT
22 inst /usr/local/bin/iowrap
23
24 # Kernel drivers
25 instmods =drivers/hid
27944cdc 26 instmods efivarfs
5fca8d27
MT
27
28 # Network drivers
2c13fafb 29 instmods =drivers/net/ethernet =drivers/net/phy =drivers/net/usb
5fca8d27
MT
30 instmods virtio_net hv_netvsc vmxnet3
31
32 # Filesystem support
e2617fc0
MT
33 inst_multiple parted mkswap mke2fs mkfs.xfs mkfs.vfat
34 instmods ext4 iso9660 vfat xfs ntfs3
5fca8d27
MT
35
36 # Extraction
5621b0ef 37 inst_multiple tar gzip zstd
5fca8d27 38
7d114284 39 # Networking
c0511f3a 40 inst_multiple dhcpcd ethtool hostname ip ping sort wget
7d114284 41 inst /usr/bin/start-networking.sh
5fca8d27 42 inst /var/ipfire/dhcpc/dhcpcd.conf
c0511f3a 43 inst /var/ipfire/dhcpc/dhcpcd-run-hooks
5fca8d27
MT
44 inst "$moddir/70-dhcpcd.exe" "/var/ipfire/dhcpc/dhcpcd-hooks/70-dhcpcd.exe"
45
f754146b
MT
46 # CAs
47 inst /etc/ssl/cert.pem
48
69749af1 49 inst /etc/host.conf /etc/protocols
c0511f3a
MT
50 inst /etc/nsswitch.conf /etc/resolv.conf
51 inst_libdir_file "libnss_dns.so.*"
52
5fca8d27 53 # Misc. tools
5ea26096 54 inst_multiple chmod cut grep eject id killall md5sum ntpdate touch
3f1c7eeb 55 inst_multiple -o fdisk cfdisk df ps top
5fca8d27
MT
56
57 # Hardware IDs
58 inst /usr/share/hwdata/pci.ids /usr/share/hwdata/usb.ids
59
60 # Locales
7b6d7c69
MT
61 mkdir -p "${initdir}/usr/lib/locale"
62 localedef --quiet --prefix="${initdir}" --add-to-archive /usr/lib/locale/en_US
63 localedef --quiet --prefix="${initdir}" --add-to-archive /usr/lib/locale/en_US.utf8
64
37f3421a
MT
65 for file in /usr/share/locale/*/LC_MESSAGES/installer.mo; do
66 inst "${file}"
67 done
5fca8d27 68
5315fae6
MT
69 # Bash start files
70 inst_multiple /etc/profile /root/.bash_profile /etc/bashrc /root/.bashrc
02d3ebbd
MT
71 for file in /etc/profile.d/*.sh; do
72 inst "${file}"
73 done
5315fae6 74
5fca8d27
MT
75 inst_hook cmdline 99 "$moddir/fake-root.sh"
76 inst_hook pre-mount 99 "$moddir/run-installer.sh"
77
78 return 0
79}