[Bug 211503] gpart bootcode should have an easier way to specify partition index

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 1 15:34:42 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211503

            Bug ID: 211503
           Summary: gpart bootcode should have an easier way to specify
                    partition index
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: vangyzen at freebsd.org

When installing bootcode to a partition, the user needs to find the right
partition index.

    gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0

This is tedious and error-prone.  The bootcode command should take an
alternative parameter that specifies the partition in a more user-friendly way.
 My first idea is -t <type>, such as

    gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -t freebsd-boot da0

This would install to the first freebsd-boot partition on da0.

Perhaps another option is to use the partition's label, which would be even
more user-friendly.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list