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
This commit is contained in:
Ceri Davies 2006-10-08 21:16:00 +00:00
parent f4f83da02d
commit 297a4b8352

View File

@ -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;
}
}