diff --git a/usr/local/www/installer.php b/usr/local/www/installer.php index f7e6c3c4f2..a019144419 100644 --- a/usr/local/www/installer.php +++ b/usr/local/www/installer.php @@ -128,6 +128,29 @@ function installer_find_first_disk() { return $disk; } +function get_disk_info($diskname) { + global $g, $fstype; + $disk = split("\n", `/PCBSD/pc-sysinstall/pc-sysinstall disk-list`); + $disks_array = array(); + foreach($disk as $d) { + if(!$d) + continue; + $disks_info = split(":", $d); + $tmp_array = array(); + if($disks_info[0] == $diskname) { + $disk_info = split("\n", `/PCBSD/pc-sysinstall/pc-sysinstall disk-info {$disks_info[0]}`); + foreach($disk_info as $di) { + $di_s = split("=", $di); + if($di_s[0]) + $tmp_array[$di_s[0]] = $di_s[1]; + } + $tmp_array['disk'] = trim($disks_info[0]); + $tmp_array['desc'] = trim(htmlentities($disks_info[1])); + return $tmp_array; + } + } +} + // Return an array with all disks information. function installer_find_all_disks() { global $g, $fstype; @@ -392,6 +415,8 @@ function verify_before_install() { head_html(); body_html(); page_table_start(); + $disk = get_disk_info($_REQUEST['disk']); + $disksize = format_bytes($disk['size'] * 1048576); echo << @@ -408,13 +433,19 @@ function verify_before_install() {
- Please verify parameters before we begin installation:

- - - +
Target Disk:{$_REQUEST['disk']}
Filesystem type:{$_REQUEST['fstype']}
+ + +
+
Please verify that the following is correct:
+

- + + + + +
Target Disk:{$_REQUEST['disk']}
Disk size:{$disksize}
Filesystem type:{$_REQUEST['fstype']}

@@ -422,6 +453,11 @@ function verify_before_install() { +
+

+ + +

@@ -573,8 +609,10 @@ EOF; } else { // Prepare disk selection dropdown $custom_txt = "Disk:

\n"; // XXX: Convert to rowhelper. Add Ajax callbacks to verify sizes, etc. // Prepare disk types @@ -647,7 +685,7 @@ function installer_main() {

Rescue config.xml

- Easy installation of {$g['product_name']} using the UFS filesystem

+ Easy installation of {$g['product_name']} using the UFS filesystem

{$zfs_enabled} Custom installation of {$g['product_name']}