fixed bug in post_install.sh
Kyle Sheumaker [Tue, 13 Jan 2015 14:58:54 +0000 (08:58 -0600)]
etc/cloner3/installer.sh
etc/hardware.sh
manifest

index 9c911a5..5493f96 100755 (executable)
@@ -233,7 +233,7 @@ done < /cloner/setup/bootloader
 
 # if a post install script exists we execute it
 if [ -e /cloner/setup/post_install.sh ]
-do
+then
        msg -n "Found a post_install.sh script executing it"
        server_log "Executing post_install.sh '${_node}' '${_image}' '${_server}'" "${_node}"
 
@@ -243,7 +243,7 @@ do
        chroot /cloner/mnt /tmp/post_install.sh "${_node}" "${_image}" "${_server}"
        rm -f /cloner/mnt/tmp/post_install.sh
        
-done
+fi
 
 # we want to sort our filesystems via the mntpoint field so we can unmount them in
 # the reverse order
index 91f0935..cf45d6f 100755 (executable)
@@ -55,6 +55,11 @@ dhcp_on_interface() {
        fi
 }
 
+header "Loading other modules"
+for i in `cat /etc/modules_other_early.conf`
+do
+       modprobe_module ${i}    
+done
 
 
 header "Loading network card modules"
index 49b9e3a..b848a4a 100644 (file)
--- a/manifest
+++ b/manifest
@@ -34,6 +34,7 @@
 755:./etc/syscheck/startup.sh
 755:./etc/script/startup.sh
 644:./etc/modules_other.conf
+644:./etc/modules_other_early.conf
 755:./etc/profile
 644:./etc/shells
 755:./etc/startup.sh