Ignore:
Timestamp:
Jun 20, 2013 6:57:11 PM (10 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
9787b71, 30fa08f
Parents:
d464bcc
Message:

Fix GRUB and GPT to place nice together

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-sysinstall/backend/functions-disk.sh

    r9caf430 racdd4b9  
    664664  echo_log "Running gpart on ${_intDISK}" 
    665665  rc_halt "gpart create -s GPT ${_intDISK}" 
    666   rc_halt "gpart add -b 34 -s 128 -t freebsd-boot ${_intDISK}" 
    667666   
    668667  if [ "${_intBOOT}" = "GRUB" ] ; then 
     668    rc_halt "gpart add -b 34 -s 1M -t bios-boot ${_intDISK}" 
    669669    # Doing a GRUB stamp? Lets save it for post-install 
    670670    echo "${_intDISK}" >> ${TMPDIR}/.grub-install 
    671671  else 
     672    rc_halt "gpart add -b 34 -s 128 -t freebsd-boot ${_intDISK}" 
    672673    echo_log "Stamping boot sector on ${_intDISK}" 
    673674    rc_halt "gpart bootcode -b /boot/pmbr ${_intDISK}" 
Note: See TracChangeset for help on using the changeset viewer.