Show
Ignore:
Timestamp:
08/07/08 16:35:15 (4 months ago)
Author:
kris
Message:

Fixed what should be all problems when using gjournal, either going from journaling to UFS+S or going to UFS regular. Now it the scripts correctly stop gjournal, which allows bsdlabel to work properly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FormatDisk.sh

    r2557 r2560  
    77sysctl kern.geom.debugflags=16 
    88 
     9#Get our Device Name 
     10device=${1} 
     11 
    912# Check if we need to shutdown any journals on this drive 
    1013ls /dev/${1}*.journal >/dev/null 2>/dev/null 
     
    1417   for i in `ls ${1}*.journal` 
    1518   do 
    16      gjournal stop ${i} 
    17      gjournal clear ${i} 
     19     rawjournal="`echo ${i} | cut -d '.' -f 1`" 
     20     gjournal stop -f ${rawjournal} 
     21     gjournal clear ${rawjournal} 
    1822   done 
    1923fi 
    2024 
    21 #Get our Device Name 
    22 device=${1} 
    2325 
    2426#Erase any existing bootloader