View | Details | Raw Unified | Return to bug 210722
Collapse All | Expand All

(-)usr.sbin/bsdinstall/partedit/gpart_ops.c (+14 lines)
Lines 617-622 Link Here
617
	if (choice) /* Cancel pressed */
617
	if (choice) /* Cancel pressed */
618
		goto endedit;
618
		goto endedit;
619
619
620
	/* If this is the root partition, check that this fs is bootable */
621
	if (strcmp(items[2].text, "/") == 0 && !is_fs_bootable(scheme,
622
	    items[0].text)) {
623
		char message[512];
624
		sprintf(message, "This file system (%s) is not bootable "
625
		    "on this system. Are you sure you want to proceed?",
626
		    items[0].text);
627
		dialog_vars.defaultno = TRUE;
628
		choice = dialog_yesno("Warning", message, 0, 0);
629
		dialog_vars.defaultno = FALSE;
630
		if (choice == 1) /* cancel */
631
			goto editpart;
632
	}
633
620
	/* Check if the label has a / in it */
634
	/* Check if the label has a / in it */
621
	if (strchr(items[3].text, '/') != NULL) {
635
	if (strchr(items[3].text, '/') != NULL) {
622
		dialog_msgbox("Error", "Label contains a /, which is not an "
636
		dialog_msgbox("Error", "Label contains a /, which is not an "

Return to bug 210722