Changeset 2962

Show
Ignore:
Timestamp:
11/11/08 11:43:47 (16 months ago)
Author:
kris
Message:

Updated the PC-BSD install script to detect if the user is below 1GB of memory when trying to use ZFS, and stop them.

Location:
pcbsd
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/branches/7.0/mfsroot-overlay/root/PCBSDStart.sh

    r2620 r2962  
    6666if [ "$bootzfs" = "YES" ] 
    6767then 
    68   echo ' 
     68  MEM=`sysctl hw.realmem | cut -d " " -f 2` 
     69  if [ $MEM -gt 1000000000 ] 
     70  then 
     71    echo ' 
    6972zfs_enable="YES"' >> /etc/rc.conf 
    70   /etc/rc.d/zfs start 
    71   touch /tmp/zfsEnabled 
     73    /etc/rc.d/zfs start 
     74    touch /tmp/zfsEnabled 
     75  else 
     76     echo "WARNING: ZFS was enabled, but the system does not have the required 1GB of memory!" 
     77     echo "Please increase the memory to 1GB or above to install with ZFS." 
     78     echo "You may still install normally with UFS2 or UFS2 + Journaling." 
     79     echo "[Press Enter to Continue]" 
     80     read tmp 
     81  fi  
    7282fi 
    7383 
  • pcbsd/trunk/mfsroot-overlay/root/PCBSDStart.sh

    r2620 r2962  
    6666if [ "$bootzfs" = "YES" ] 
    6767then 
    68   echo ' 
     68  MEM=`sysctl hw.realmem | cut -d " " -f 2` 
     69  if [ $MEM -gt 1000000000 ] 
     70  then 
     71    echo ' 
    6972zfs_enable="YES"' >> /etc/rc.conf 
    70   /etc/rc.d/zfs start 
    71   touch /tmp/zfsEnabled 
     73    /etc/rc.d/zfs start 
     74    touch /tmp/zfsEnabled 
     75  else 
     76     echo "WARNING: ZFS was enabled, but the system does not have the required 1GB of memory!" 
     77     echo "Please increase the memory to 1GB or above to install with ZFS." 
     78     echo "You may still install normally with UFS2 or UFS2 + Journaling." 
     79     echo "[Press Enter to Continue]" 
     80     read tmp 
     81  fi  
    7282fi 
    7383