diff options
author | Liam McLoughlin <hexxeh@hexxeh.net> | 2011-08-15 02:17:34 +0100 |
---|---|---|
committer | Liam McLoughlin <hexxeh@hexxeh.net> | 2011-08-15 02:20:38 +0100 |
commit | 47445a62cf44af317b057d26a076948e006a9df9 (patch) | |
tree | 059e1b3ac0e683a3ba0bf543816f10fee39bec5c | |
parent | Fix incorrect default package name (diff) | |
download | gentoaster-47445a62cf44af317b057d26a076948e006a9df9.tar.gz gentoaster-47445a62cf44af317b057d26a076948e006a9df9.tar.bz2 gentoaster-47445a62cf44af317b057d26a076948e006a9df9.zip |
Add default disk size option, fix daemon kernel config bug
-rw-r--r-- | daemon.php | 2 | ||||
-rw-r--r-- | web/config.php | 3 | ||||
-rw-r--r-- | web/index.php | 5 |
3 files changed, 8 insertions, 2 deletions
@@ -111,6 +111,8 @@ preg_match("/Step (.+):/", $progressLine, $matches); if (sizeof($matches) > 0) { $job->sendStatus($matches[1], $progressMagic); + } elseif (substr($progressLine, 0, 5) == "yes: ") { + // do nothing } else { $nonstatusOutput .= $progressLine; } diff --git a/web/config.php b/web/config.php index bdb5b47..9d86c0c 100644 --- a/web/config.php +++ b/web/config.php @@ -33,6 +33,9 @@ // What should we set as the default list of packages? define("DEFAULT_KEYWORDS", ""); + // What should the default virtual machine disk size be? + define("DEFAULT_DISK_SIZE", 8192); + // What should we limit the virtual machine disk size to? define("MAX_DISK_SIZE", 16384); diff --git a/web/index.php b/web/index.php index aa17151..cdeecd3 100644 --- a/web/index.php +++ b/web/index.php @@ -120,7 +120,8 @@ <label for="partitioning_size">Disk size</label> <br /> <input id="partitioning_size" class="required" - type="text" name="image_size" value="4096"><br> + type="text" name="image_size" value="<?php echo DEFAULT_DISK_SIZE; ?>"> + <br> <label for="">Split</label><br /><br /> <div id="partitioning_split" name="split"></div> @@ -211,4 +212,4 @@ </script> <script type="text/javascript" src=" /js/gentoaster.js"></script> </body> -</html> +</html>
\ No newline at end of file |