From 3817fbd6da51298a1ee8e17a4edf7aedfb1dce6b Mon Sep 17 00:00:00 2001 From: ms Date: Wed, 18 Jul 2007 22:03:07 +0000 Subject: [PATCH] =?utf8?q?Die=20Mindestgr=C3=B6=C3=9Fe=20des=20Dateisystem?= =?utf8?q?s=20nochmal=20reduziert=20f=C3=BCr=20die=20Installation=20auf=20?= =?utf8?q?einer=201GB=20CompactFlash-IDE-Karte.=20Das=20hier=20erfordert?= =?utf8?q?=20nochmal=20eine=20genauere=20Untersuchung=20und=20die=20Umsetz?= =?utf8?q?ung=20einer=20besseren=20Berechnung=20der=20Mindestgr=C3=B6?= =?utf8?q?=C3=9Fen=20der=20Partitionen=20sowie=20einige=20erweiterte=20Ein?= =?utf8?q?stellungen=20zur=20swap-Partition.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@706 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- src/install+setup/install/main.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/install+setup/install/main.c b/src/install+setup/install/main.c index ef8f8f60b..43ee69734 100644 --- a/src/install+setup/install/main.c +++ b/src/install+setup/install/main.c @@ -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; } -- 2.39.2