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:
parent
bd713f224f
commit
931196e140
@ -879,7 +879,13 @@ diskPartitionWrite(dialogMenuItem *self)
|
|||||||
|
|
||||||
msgNotify("Writing partition information to drive %s", d->name);
|
msgNotify("Writing partition information to drive %s", d->name);
|
||||||
if (!Fake && Write_Disk(d)) {
|
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;
|
return DITEM_FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user