Page MenuHomeFreeBSD

D6879.id17657.diff
No OneTemporary

D6879.id17657.diff

Index: usr.sbin/bsdinstall/partedit/gpart_ops.c
===================================================================
--- usr.sbin/bsdinstall/partedit/gpart_ops.c
+++ usr.sbin/bsdinstall/partedit/gpart_ops.c
@@ -617,6 +617,20 @@
if (choice) /* Cancel pressed */
goto endedit;
+ /* If this is the root partition, check that this fs is bootable */
+ if (strcmp(items[2].text, "/") == 0 && !is_fs_bootable(scheme,
+ items[0].text)) {
+ char message[512];
+ sprintf(message, "This file system (%s) is not bootable "
+ "on this system. Are you sure you want to proceed?",
+ items[0].text);
+ dialog_vars.defaultno = TRUE;
+ choice = dialog_yesno("Warning", message, 0, 0);
+ dialog_vars.defaultno = FALSE;
+ if (choice == 1) /* cancel */
+ goto editpart;
+ }
+
/* Check if the label has a / in it */
if (strchr(items[3].text, '/') != NULL) {
dialog_msgbox("Error", "Label contains a /, which is not an "

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 22, 3:05 AM (6 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25887672
Default Alt Text
D6879.id17657.diff (933 B)

Event Timeline