summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/label.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2001-12-20 23:39:30 +0000
committerjkh <jkh@FreeBSD.org>2001-12-20 23:39:30 +0000
commit7a0109b5c0a87d4cff83c1923789cf9c5b38126a (patch)
treed1a6cea3462093e20a6a21d18ac3011fa7f2f3eb /usr.sbin/sysinstall/label.c
parentce76580121e134a683c50883df87adf3e5c38ce6 (diff)
downloadFreeBSD-src-7a0109b5c0a87d4cff83c1923789cf9c5b38126a.zip
FreeBSD-src-7a0109b5c0a87d4cff83c1923789cf9c5b38126a.tar.gz
Enable soft updates by default for everything but the root filesystem.
The user can still toggle it back off in the label editor (or post-install for that matter) if they explicitly do not want soft updates to be used for some reason. Agreed to be a good thing by: kirk
Diffstat (limited to 'usr.sbin/sysinstall/label.c')
-rw-r--r--usr.sbin/sysinstall/label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c
index 9be92b2..c9b8c8d 100644
--- a/usr.sbin/sysinstall/label.c
+++ b/usr.sbin/sysinstall/label.c
@@ -328,7 +328,7 @@ new_part(char *mpoint, Boolean newfs, u_long size)
strcpy(ret->newfs_cmd, "newfs ");
strcat(ret->newfs_cmd, variable_get(VAR_NEWFS_ARGS));
ret->newfs = newfs;
- ret->soft = 0;
+ ret->soft = strcmp(mpoint, "/") ? 1 : 0;
if (!size)
return ret;
return ret;
OpenPOWER on IntegriCloud