Grub hat wieder ein huebsches Splashimage.

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@801 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2007-08-22 16:23:15 +00:00
parent 3fa3a0f947
commit 4ff9093d27
10 changed files with 1945 additions and 508 deletions

View File

@@ -55,10 +55,12 @@ long calc_swapsize(long memory, long disk) {
if (memory < 128) {
return 256;
}
if (memory > 1024) {
else if (memory > 1024) {
return 512;
}
return memory;
else {
return memory;
}
}
long calc_rootsize(long free, long max) {
@@ -68,10 +70,12 @@ long calc_rootsize(long free, long max) {
if (root < 256) {
return 0;
}
if (root > 2048) {
root = 2048;
else if (root > 2048) {
return 2048;
}
else {
return 400;
}
return root;
}
int main(int argc, char *argv[])
@@ -397,11 +401,6 @@ int main(int argc, char *argv[])
boot_partition = 20; /* in MB */
current_free = maximum_free - boot_partition - swap_file;
if (current_free < 700) {
errorbox(ctr[TR_DISK_TOO_SMALL]);
goto EXIT;
}
root_partition = calc_rootsize(current_free, maximum_free);
if (root_partition == 0) {