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:
parent
2974095528
commit
1f80683394
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user