]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/installer/dracut-module/module-setup.sh
installer: Implement option to run a postinstall script in the installer
[ipfire-2.x.git] / src / installer / dracut-module / module-setup.sh
index 0aa77c945859017c9b6d62e6f64b7b1c79747174..187b12eb15e86470035f5c1c253013402f53aed0 100755 (executable)
@@ -18,6 +18,7 @@ install() {
     inst /etc/system-release
     inst /usr/bin/installer
     inst /usr/bin/downloadsource.sh
     inst /etc/system-release
     inst /usr/bin/installer
     inst /usr/bin/downloadsource.sh
+    inst /usr/bin/execute-postinstall.sh
     inst /usr/local/bin/iowrap
 
     # Kernel drivers
     inst /usr/local/bin/iowrap
 
     # Kernel drivers
@@ -34,17 +35,19 @@ install() {
     # Extraction
     inst_multiple tar gzip lzma xz
 
     # Extraction
     inst_multiple tar gzip lzma xz
 
-    # DHCP Client
-    inst dhcpcd
-    inst /var/ipfire/dhcpc/dhcpcd-run-hooks
+    # Networking
+    inst_multiple dhcpcd ethtool hostname ip ping sort wget
+    inst /usr/bin/start-networking.sh
     inst /var/ipfire/dhcpc/dhcpcd.conf
     inst /var/ipfire/dhcpc/dhcpcd.conf
-    for file in /var/ipfire/dhcpc/dhcpcd-hooks/*; do
-        inst "${file}"
-    done
+    inst /var/ipfire/dhcpc/dhcpcd-run-hooks
     inst "$moddir/70-dhcpcd.exe" "/var/ipfire/dhcpc/dhcpcd-hooks/70-dhcpcd.exe"
 
     inst "$moddir/70-dhcpcd.exe" "/var/ipfire/dhcpc/dhcpcd-hooks/70-dhcpcd.exe"
 
+    inst /etc/host.conf /etc/hosts /etc/protocols
+    inst /etc/nsswitch.conf /etc/resolv.conf
+    inst_libdir_file "libnss_dns.so.*"
+
     # Misc. tools
     # Misc. tools
-    inst_multiple eject ping touch wget
+    inst_multiple chmod cut grep eject id killall md5sum touch
     inst_multiple -o fdisk cfdisk df ps top
 
     # Hardware IDs
     inst_multiple -o fdisk cfdisk df ps top
 
     # Hardware IDs