Page MenuHomeFreeBSD

D12346.id32992.diff
No OneTemporary

D12346.id32992.diff

Index: head/usr.sbin/bsdinstall/partedit/gpart_ops.c
===================================================================
--- head/usr.sbin/bsdinstall/partedit/gpart_ops.c
+++ head/usr.sbin/bsdinstall/partedit/gpart_ops.c
@@ -1043,14 +1043,17 @@
/* Warn if no mountpoint set */
if (strcmp(items[0].text, "freebsd-ufs") == 0 &&
items[2].text[0] != '/') {
- dialog_vars.defaultno = TRUE;
- choice = dialog_yesno("Warning",
- "This partition does not have a valid mountpoint "
- "(for the partition from which you intend to boot the "
- "operating system, the mountpoint should be /). Are you "
- "sure you want to continue?"
- , 0, 0);
- dialog_vars.defaultno = FALSE;
+ choice = 0;
+ if (interactive) {
+ dialog_vars.defaultno = TRUE;
+ choice = dialog_yesno("Warning",
+ "This partition does not have a valid mountpoint "
+ "(for the partition from which you intend to boot the "
+ "operating system, the mountpoint should be /). Are you "
+ "sure you want to continue?"
+ , 0, 0);
+ dialog_vars.defaultno = FALSE;
+ }
if (choice == 1) /* cancel */
goto addpartform;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Jun 19, 8:01 PM (12 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34090141
Default Alt Text
D12346.id32992.diff (1 KB)

Event Timeline