aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCeri Davies <ceri@FreeBSD.org>2006-10-08 21:16:00 +0000
committerCeri Davies <ceri@FreeBSD.org>2006-10-08 21:16:00 +0000
commit297a4b8352c2712f93e2b22fc09a56afd62ffa76 (patch)
tree1e72e851d403ae0971f976dfb3d61d8d36dab12f
parentf4f83da02d39f0f3498a344c6ee65be2907e2b74 (diff)
Notes
-rw-r--r--usr.sbin/sysinstall/disks.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index 68dd987408b03..fa4b39f495ab4 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/disks.c
@@ -879,7 +879,13 @@ diskPartitionWrite(dialogMenuItem *self)
msgNotify("Writing partition information to drive %s", d->name);
if (!Fake && Write_Disk(d)) {
- msgConfirm("ERROR: Unable to write data to disk %s!", d->name);
+ if (RunningAsInit) {
+ msgConfirm("ERROR: Unable to write data to disk %s!", d->name);
+ } else {
+ msgConfirm("ERROR: Unable to write data to disk %s!\n\n"
+ "To edit the labels on a running system set\n"
+ "sysctl kern.geom.debugflags=16 and try again.", d->name);
+ }
return DITEM_FAILURE;
}
}