summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/install.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2001-03-10 19:51:04 +0000
committerjkh <jkh@FreeBSD.org>2001-03-10 19:51:04 +0000
commite6899b0da5c341a82e215bbd7ecf9f26e9652ce6 (patch)
tree99c901c730c245e9fd32216046a273fbc1e4c921 /usr.sbin/sade/install.c
parent369d42d4288db8d18fe136e29f89b472db5a0cf5 (diff)
downloadFreeBSD-src-e6899b0da5c341a82e215bbd7ecf9f26e9652ce6.zip
FreeBSD-src-e6899b0da5c341a82e215bbd7ecf9f26e9652ce6.tar.gz
Support setting soft updates from the label editor.
Diffstat (limited to 'usr.sbin/sade/install.c')
-rw-r--r--usr.sbin/sade/install.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 8a116dc..638530a 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -930,6 +930,11 @@ installFilesystems(dialogMenuItem *self)
msgConfirm("Warning: fsck returned status of %d for %s.\n"
"This partition may be unsafe to use.", i, dname);
}
+ if (root->soft) {
+ i = vsystem("tunefs -n enable %s", dname);
+ if (i)
+ msgConfirm("Warning: Unable to enable softupdates for root filesystem on %s", dname);
+ }
/* Switch to block device */
sprintf(dname, "/dev/%s", rootdev->name);
@@ -972,6 +977,8 @@ installFilesystems(dialogMenuItem *self)
command_shell_add(tmp->mountpoint, "%s %s/dev/%s", tmp->newfs_cmd, RunningAsInit ? "/mnt" : "", c2->name);
else
command_shell_add(tmp->mountpoint, "fsck -y %s/dev/%s", RunningAsInit ? "/mnt" : "", c2->name);
+ if (tmp->soft)
+ command_shell_add(tmp->mountpoint, "tunefs -n enable %s/dev/%s", RunningAsInit ? "/mnt" : "", c2->name);
command_func_add(tmp->mountpoint, Mount, c2->name);
}
else if (c2->type == part && c2->subtype == FS_SWAP) {
OpenPOWER on IntegriCloud