Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137089314
D6879.id17657.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
933 B
Referenced Files
None
Subscribers
None
D6879.id17657.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6879: bsdinstall: partedit allows user to modify bootable partition type to non-supported type without warning
Attached
Detach File
Event Timeline
Log In to Comment