Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
Show First 20 Lines • Show All 2,874 Lines • ▼ Show 20 Lines | if (rootpool) { | ||||
* XXX need a better way to prevent user from | * XXX need a better way to prevent user from | ||||
* booting up a half-baked vdev. | * booting up a half-baked vdev. | ||||
*/ | */ | ||||
(void) fprintf(stderr, dgettext(TEXT_DOMAIN, "Make " | (void) fprintf(stderr, dgettext(TEXT_DOMAIN, "Make " | ||||
"sure to wait until resilver is done " | "sure to wait until resilver is done " | ||||
"before rebooting.\n")); | "before rebooting.\n")); | ||||
(void) fprintf(stderr, "\n"); | (void) fprintf(stderr, "\n"); | ||||
(void) fprintf(stderr, dgettext(TEXT_DOMAIN, "If " | (void) fprintf(stderr, dgettext(TEXT_DOMAIN, "If " | ||||
"you boot from pool '%s', you may need to update\n" | "you boot from the '%s' pool, you may need to " | ||||
"boot code on newly attached disk '%s'.\n\n" | "update boot code on newly attached disk '%s'.\n\n" | ||||
"Assuming you use GPT partitioning and 'da0' is " | "For legacy/BIOS boot using GPT partitioning " | ||||
"your new boot disk\n" | "update the 'freebsd-boot' type partition.\n\n" | ||||
bcr: I think you need to mention "gpart show" here, so that users know what you are referring to… | |||||
"you may use the following command:\n\n" | |||||
"\tgpart bootcode -b /boot/pmbr -p " | "\tgpart bootcode -b /boot/pmbr -p " | ||||
"/boot/gptzfsboot -i 1 da0\n\n"), | "/boot/gptzfsboot -i 2 %s\n\n" | ||||
zhp->zpool_name, new_disk); | "Or for UEFI, update the 'efi' type partition.\n\n" | ||||
"\tgpart bootcode -p /boot/boot1.efifat -i 1 %s\n\n" | |||||
"Make sure the -i <index> parameter is correct\n\n", | |||||
zhp->zpool_name, new_disk, new_disk, new_disk); | |||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
switch (errno) { | switch (errno) { | ||||
case ENOTSUP: | case ENOTSUP: | ||||
/* | /* | ||||
* Can't attach to or replace this type of vdev. | * Can't attach to or replace this type of vdev. | ||||
▲ Show 20 Lines • Show All 1,607 Lines • Show Last 20 Lines |
I think you need to mention "gpart show" here, so that users know what you are referring to when talking about freebsd-boot (where is that output coming from).