]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Die Mindestgröße des Dateisystems nochmal reduziert für die Installation
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 18 Jul 2007 22:03:07 +0000 (22:03 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 18 Jul 2007 22:03:07 +0000 (22:03 +0000)
auf einer 1GB CompactFlash-IDE-Karte.
Das hier erfordert nochmal eine genauere Untersuchung und die Umsetzung
einer besseren Berechnung der Mindestgrößen der Partitionen sowie einige
erweiterte Einstellungen zur swap-Partition.

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@706 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

src/install+setup/install/main.c

index ef8f8f60bce997746f3c7875adbddecb61eb413f..43ee6973414ac38acdf500b12667dcee4cd216d5 100644 (file)
@@ -66,7 +66,7 @@ long calc_rootsize(long free, long max) {
        long root;
        
        root = max / 2;
-       if (root < 512) {
+       if (root < 256) {
                return 0;
        }
        if (root > 2048) {
@@ -378,16 +378,15 @@ int main(int argc, char *argv[])
        
        swap_file = calc_swapsize(memory, maximum_free);
 
-       if (maximum_free < 768 + swap_file ) {
-               if (maximum_free < 768) {
+       if (maximum_free < 512 + swap_file ) {
+               if (maximum_free < 700) {
                        errorbox(ctr[TR_DISK_TOO_SMALL]);
                        goto EXIT;
                }
 
                if (!unattended) {
                    rc = newtWinChoice(title, ctr[TR_OK], ctr[TR_CANCEL], ctr[TR_CONTINUE_NO_SWAP]);
-               }
-               else {
+               } else {
                    rc = 1;
                }
                
@@ -399,7 +398,7 @@ int main(int argc, char *argv[])
        boot_partition = 20; /* in MB */
        current_free = maximum_free - boot_partition - swap_file;
 
-       if (current_free < 768) {
+       if (current_free < 700) {
                errorbox(ctr[TR_DISK_TOO_SMALL]);
                goto EXIT;
        }