zpool suggests "installgrub"?

James R. Van Artsdalen james-freebsd-fs2 at jrv.org
Mon Dec 6 03:08:45 UTC 2010


FreeBSD H55ITX.housenet.jrv 9.0-CURRENT FreeBSD 9.0-CURRENT #2 r216088:
Thu Dec  2 20:21:21 UTC 2010    
root at H55ITX.housenet.jrv:/usr/obj/usr/src/sys/GENERIC  amd64


H55ITX:/root# zpool attach H55ITX ada4p3 ada5p3
Please be sure to invoke installgrub(1M) to make 'ada5p3' bootable.
H55ITX:/root#

>From cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c

#if defined(__i386) || defined(__amd64)
#define BOOTCMD "installgrub(1M)"
#else
#define BOOTCMD "installboot(1M)"
#endif
...
                if (rootpool) {
                       
/*                                                                                                                                                                      

                         * XXX - This should be removed once we
can                                                                                                                             

                         * automatically install the bootblocks on
the                                                                                                                          

                         * newly attached
disk.                                                                                                                                                 

                         */
                        (void) fprintf(stderr, dgettext(TEXT_DOMAIN,
"Please "
                            "be sure to invoke %s to make '%s'
bootable.\n"),
                            BOOTCMD, new_disk);
                }
                return (0);



More information about the freebsd-fs mailing list