From 72617c8745f63978d98e25a42b16ee4f4dd5c71a Mon Sep 17 00:00:00 2001 From: das Date: Sun, 10 Aug 2003 01:04:05 +0000 Subject: Instead of unconditionally refusing to install if no swap partitions are specified, prompt the user with a yes/no box. --- usr.sbin/sade/install.c | 7 ++++--- 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; } -- cgit v1.1