diff options
author | das <das@FreeBSD.org> | 2003-08-10 01:04:05 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2003-08-10 01:04:05 +0000 |
commit | 72617c8745f63978d98e25a42b16ee4f4dd5c71a (patch) | |
tree | 4471296e28ab40cf59bc2a147aefd7354c4a7d79 /usr.sbin | |
parent | 54b8dedc27783d7be56d63c11ebef12e9f10f371 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/sade/install.c | 7 | ||||
-rw-r--r-- | usr.sbin/sysinstall/install.c | 7 |
2 files changed, 8 insertions, 6 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; } diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index acc53f8..036d8c5 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/sysinstall/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; } |