Instead of unconditionally refusing to install if no swap partitions

are specified, prompt the user with a yes/no box.
This commit is contained in:
David Schultz 2003-08-10 01:04:05 +00:00
parent 2974095528
commit 1f80683394
2 changed files with 8 additions and 6 deletions

View File

@ -223,9 +223,10 @@ checkLabels(Boolean whinge, Chunk **rdev, Chunk **sdev, Chunk **udev, Chunk **vd
status = FALSE;
}
if (!swapdev && whinge) {
msgConfirm("No swap devices found - you must create at least one\n"
"swap partition.");
status = FALSE;
if (msgYesNo("No swap devices found - you should create at least one\n"
"swap partition. Without swap, the install will fail\n"
"if you do not have enough RAM. Continue anyway?"))
status = FALSE;
}
return status;
}

View File

@ -223,9 +223,10 @@ checkLabels(Boolean whinge, Chunk **rdev, Chunk **sdev, Chunk **udev, Chunk **vd
status = FALSE;
}
if (!swapdev && whinge) {
msgConfirm("No swap devices found - you must create at least one\n"
"swap partition.");
status = FALSE;
if (msgYesNo("No swap devices found - you should create at least one\n"
"swap partition. Without swap, the install will fail\n"
"if you do not have enough RAM. Continue anyway?"))
status = FALSE;
}
return status;
}