summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2003-08-10 01:04:05 +0000
committerdas <das@FreeBSD.org>2003-08-10 01:04:05 +0000
commit72617c8745f63978d98e25a42b16ee4f4dd5c71a (patch)
tree4471296e28ab40cf59bc2a147aefd7354c4a7d79 /usr.sbin/sade
parent54b8dedc27783d7be56d63c11ebef12e9f10f371 (diff)
downloadFreeBSD-src-72617c8745f63978d98e25a42b16ee4f4dd5c71a.zip
FreeBSD-src-72617c8745f63978d98e25a42b16ee4f4dd5c71a.tar.gz
Instead of unconditionally refusing to install if no swap partitions
are specified, prompt the user with a yes/no box.
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r--usr.sbin/sade/install.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index acc53f8..036d8c5 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -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;
}
OpenPOWER on IntegriCloud