Changeset 8758dc6


Ignore:
Timestamp:
08/19/15 09:43:56 (8 days ago)
Author:
Kris Moore <kris@…>
Branches:
master
Children:
da4fd82
Parents:
eb76b0a
Message:

Don't halt on dd command, since it won't return 0 when it hits
end of partition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pcbsd-utils/pc-sysinstall/backend/functions-bsdlabel.sh

    reb76b0a r8758dc6  
    358358    # This is nasty, but at the moment it works to get rid of previous installs metadata 
    359359    echo_log "Clearing partition data..." 
    360     rc_halt "dd if=/dev/zero of=${_wSlice} bs=1m" 
     360    rc_nohalt "dd if=/dev/zero of=${_wSlice} bs=1m" 
    361361    rc_halt "gpart set -a active -i ${CURPART} ${_dAdd}" 
    362362    rc_halt "sync" 
     
    377377      # This is nasty, but at the moment it works to get rid of previous installs metadata 
    378378      echo_log "Clearing partition data..." 
    379       rc_halt "dd if=/dev/zero of=${_wSlice} bs=1m" 
     379      rc_nohalt "dd if=/dev/zero of=${_wSlice} bs=1m" 
    380380      rc_halt "sync" 
    381381      sleep 5 
Note: See TracChangeset for help on using the changeset viewer.