summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-08-01 17:44:19 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-08-01 17:44:19 -0400
commit9c6421ee62ad5b950d91d0c095fcb5efc7cd4b22 (patch)
treef11cf873bb8cee4a8a76089d808811bd1da0c6f4
parentdcf479cf221f47d2b2cd6a24da96a2d4cf5e23f1 (diff)
downloadpfsense-9c6421ee62ad5b950d91d0c095fcb5efc7cd4b22.zip
pfsense-9c6421ee62ad5b950d91d0c095fcb5efc7cd4b22.tar.gz
Do not umount
-rw-r--r--PCBSD/pc-sysinstall/backend/functions-unmount.sh4
-rw-r--r--usr/local/www/installer.php32
2 files changed, 20 insertions, 16 deletions
diff --git a/PCBSD/pc-sysinstall/backend/functions-unmount.sh b/PCBSD/pc-sysinstall/backend/functions-unmount.sh
index 311bf88..08b836e 100644
--- a/PCBSD/pc-sysinstall/backend/functions-unmount.sh
+++ b/PCBSD/pc-sysinstall/backend/functions-unmount.sh
@@ -85,7 +85,7 @@ unmount_all_filesystems()
# Last lets the /mnt partition
#########################################################
- rc_nohalt "umount -f ${FSMNT}"
+ # rc_nohalt "umount -f ${FSMNT}"
# If are using a ZFS on "/" set it to legacy
if [ ! -z "${FOUNDZFSROOT}" ]
@@ -100,7 +100,7 @@ unmount_all_filesystems()
fi
# Unmount our CDMNT
- rc_nohalt "umount -f ${CDMNT}"
+ # rc_nohalt "umount -f ${CDMNT}"
# Check if we need to run any gmirror syncing
ls ${MIRRORCFGDIR}/* >/dev/null 2>/dev/null
diff --git a/usr/local/www/installer.php b/usr/local/www/installer.php
index c16368b..27e3fa8 100644
--- a/usr/local/www/installer.php
+++ b/usr/local/www/installer.php
@@ -84,7 +84,7 @@ packageType=cpdup
# Optional Components
cpdupPaths=boot,COPYRIGHT,bin,conf,conf.default,dev,etc,home,kernels,libexec,lib,root,sbin,sys,usr,var
-runExtCommand=chmod a+rx /usr/local/bin/after_installation_routines.sh && cd / && /usr/local/bin/after_installation_routines.sh
+# runExtCommand=chmod a+rx /usr/local/bin/after_installation_routines.sh && cd / && /usr/local/bin/after_installation_routines.sh
EOF;
fwrite($fd, $config);
fclose($fd);
@@ -103,7 +103,11 @@ function start_installation() {
die("Could not open /tmp/installer.sh for writing");
exit;
}
- fwrite($fd, "/PCBSD/pc-sysinstall/pc-sysinstall -c /PCBSD/pc-sysinstall/examples/pfSense-install.cfg && touch /tmp/install_complete");
+ fwrite($fd, "/PCBSD/pc-sysinstall/pc-sysinstall -c /PCBSD/pc-sysinstall/examples/pfSense-install.cfg \n");
+ fwrite($fd, "chmod a+rx /usr/local/bin/after_installation_routines.sh\n");
+ fwrite($fd, "cd / && /usr/local/bin/after_installation_routines.sh\n");
+ fwrite($fd, "touch /tmp/install_complete\n");
+
fclose($fd);
exec("chmod a+rx /tmp/installer.sh");
mwexec_bg("sh /tmp/installer.sh");
@@ -141,25 +145,25 @@ function update_installer_status() {
if(strstr($status, "/boot /mnt/boot"))
$progress = "10";
if(strstr($status, "/COPYRIGHT /mnt/COPYRIGHT"))
- $progress = "20";
+ $progress = "11";
if(strstr($status, "/bin /mnt/bin"))
- $progress = "25";
+ $progress = "12";
if(strstr($status, "/conf /mnt/conf"))
- $progress = "30";
+ $progress = "15";
if(strstr($status, "/conf.default /mnt/conf.default"))
- $progress = "35";
+ $progress = "20";
if(strstr($status, "/dev /mnt/dev"))
- $progress = "40";
+ $progress = "25";
if(strstr($status, "/etc /mnt/etc"))
- $progress = "45";
+ $progress = "30";
if(strstr($status, "/home /mnt/home"))
- $progress = "50";
+ $progress = "35";
if(strstr($status, "/kernels /mnt/kernels"))
- $progress = "55";
+ $progress = "40";
if(strstr($status, "/libexec /mnt/libexec"))
- $progress = "60";
+ $progress = "50";
if(strstr($status, "/lib /mnt/lib"))
- $progress = "65";
+ $progress = "60";
if(strstr($status, "/root /mnt/root"))
$progress = "70";
if(strstr($status, "/sbin /mnt/sbin"))
@@ -195,8 +199,8 @@ function update_installer_status() {
}
if($progress)
echo "\$('progressbar').style.width='{$progress}%';\n";
- if($progress == "100") {
- echo "\$('installerrunning').innerHTML='Installation completed. Please <a href=\"reboot.php\">reboot</a> to continue';\n";
+ if($progress == "100" && file_exists("/tmp/install_complete")) {
+ echo "\$('installerrunning').innerHTML='<font size=\"+1\">Installation completed. Please <a href=\"reboot.php\">reboot</a> to continue';\n";
unlink_if_exists("/tmp/installer.sh");
file_put_contents("/tmp/installer_installer_running", "finished");
}
OpenPOWER on IntegriCloud