summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2006-10-08 21:16:00 +0000
committerceri <ceri@FreeBSD.org>2006-10-08 21:16:00 +0000
commit931196e1400f6e81cc754d71d00ec487c9b3ae48 (patch)
tree1e72e851d403ae0971f976dfb3d61d8d36dab12f /usr.sbin
parentbd713f224f205afa56abb4df2f13b114002cb621 (diff)
downloadFreeBSD-src-931196e1400f6e81cc754d71d00ec487c9b3ae48.zip
FreeBSD-src-931196e1400f6e81cc754d71d00ec487c9b3ae48.tar.gz
When using sysinstall on a running system and editing a disk label
fails, suggest setting kern.geom.debugflags to 16. PR: bin/94409 Submitted by: Markus Oestreicher <m punkt oe at x dash trader dot de> MFC after: 10 days
Diffstat (limited to 'usr.sbin')
-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 68dd987..fa4b39f 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;
}
}
OpenPOWER on IntegriCloud