]>
Commit | Line | Data |
---|---|---|
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 | |
6 | check() { | |
7 | return 255 | |
8 | } | |
9 | ||
10 | # called by dracut | |
11 | depends() { | |
12 | echo base bash drm mdraid shutdown | |
13 | return 0 | |
14 | } | |
15 | ||
16 | # called by dracut | |
17 | install() { | |
18 | inst /etc/system-release | |
19 | inst /usr/bin/installer | |
20 | inst /usr/bin/downloadsource.sh | |
21 | inst /usr/bin/execute-postinstall.sh | |
22 | inst /usr/local/bin/iowrap | |
23 | ||
24 | # Kernel drivers | |
25 | instmods =drivers/hid | |
26 | instmods efivarfs | |
27 | ||
28 | # Network drivers | |
29 | instmods =drivers/net/ethernet =drivers/net/phy =drivers/net/usb | |
30 | instmods virtio_net hv_netvsc vmxnet3 | |
31 | ||
32 | # Filesystem support | |
33 | inst_multiple parted mkswap mke2fs mkfs.xfs mkfs.vfat mkfs.btrfs | |
34 | instmods ext4 iso9660 vfat xfs ntfs3 btrfs | |
35 | ||
36 | # Extraction | |
37 | inst_multiple tar gzip zstd | |
38 | ||
39 | # Networking | |
40 | inst_multiple dhcpcd ethtool hostname ip ping sort wget | |
41 | inst /usr/bin/start-networking.sh | |
42 | inst /var/ipfire/dhcpc/dhcpcd.conf | |
43 | inst /var/ipfire/dhcpc/dhcpcd-run-hooks | |
44 | inst "$moddir/70-dhcpcd.exe" "/var/ipfire/dhcpc/dhcpcd-hooks/70-dhcpcd.exe" | |
45 | ||
46 | # CAs | |
47 | inst /etc/ssl/cert.pem | |
48 | ||
49 | inst /etc/host.conf /etc/protocols | |
50 | inst /etc/nsswitch.conf /etc/resolv.conf | |
51 | inst_libdir_file "libnss_dns.so.*" | |
52 | ||
53 | # Misc. tools | |
54 | inst_multiple chmod cut grep eject id killall md5sum ntpdate touch | |
55 | inst_multiple -o fdisk cfdisk df ps top | |
56 | ||
57 | # Hardware IDs | |
58 | inst /usr/share/hwdata/pci.ids /usr/share/hwdata/usb.ids | |
59 | ||
60 | # Locales | |
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 | ||
65 | for file in /usr/share/locale/*/LC_MESSAGES/installer.mo; do | |
66 | inst "${file}" | |
67 | done | |
68 | ||
69 | # Bash start files | |
70 | inst_multiple /etc/profile /root/.bash_profile /etc/bashrc /root/.bashrc | |
71 | for file in /etc/profile.d/*.sh; do | |
72 | inst "${file}" | |
73 | done | |
74 | ||
75 | inst_hook cmdline 99 "$moddir/fake-root.sh" | |
76 | inst_hook pre-mount 99 "$moddir/run-installer.sh" | |
77 | ||
78 | return 0 | |
79 | } |