Ignore:
Timestamp:
Jun 26, 2013 6:19:48 AM (10 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
477e6f1
Parents:
584b6ff
Message:

Improve the install process, skip integrity check, and mount usr.uzip
directly from media, in order to leave the maximum ammount of RAM
available for the install process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • overlays/install-overlay/etc/SetupInstall.sh

    r1620346 r6e0ee8d  
    55echo "Mounting /memfs" 
    66 
    7 # Do a check of available memory  
    8 sysMem=`/sbin/sysctl hw.realmem | /bin/cut -d ' ' -f 2` 
    9 minSize=`/bin/expr 500 \* 1024 \* 1024` 
    10 if [ $sysMem -lt $minSize ] ; then 
    11   MDSIZE="2" 
    12   echo "Creating ${MDSIZE}MB ramdisk..." 
    13   /sbin/mdmfs -S -s ${MDSIZE}M -O space md2 /memfs 
     7MDSIZE="2" 
     8echo "Creating ${MDSIZE}MB ramdisk..." 
     9/sbin/mdmfs -S -s ${MDSIZE}M -O space md2 /memfs 
    1410 
    15   echo "Mounting /usr" 
    16   MDDEVICE="`/sbin/mdconfig -a -t vnode -o readonly -f /uzip/usr.uzip`.uzip" 
    17   /sbin/mount -r /dev/$MDDEVICE /usr 
    18  
    19 else 
    20   # Copy uzip to memory which lets us run faster 
    21   MDSIZE="`/bin/du -m /uzip/usr.uzip | /bin/cut -f 1`" 
    22   MDSIZE="`/bin/expr ${MDSIZE} + 10`" 
    23   echo "Creating ${MDSIZE}MB ramdisk..." 
    24   /sbin/mdmfs -S -s ${MDSIZE}M -O space md2 /memfs 
    25  
    26   echo "Copying setup image into memory... Please Wait..." 
    27   /bin/cp /uzip/usr.uzip /memfs/ 
    28  
    29   # Mount the  "usr" directory 
    30   echo "Mounting /usr" 
    31   MDDEVICE="`/sbin/mdconfig -a -t vnode -o readonly -f /memfs/usr.uzip`.uzip" 
    32   /sbin/mount -r /dev/$MDDEVICE /usr 
    33  
    34   # End of loading if we have > 512MB ram 
    35 fi 
     11echo "Mounting /usr" 
     12MDDEVICE="`/sbin/mdconfig -a -t vnode -o readonly -f /uzip/usr.uzip`.uzip" 
     13/sbin/mount -r /dev/$MDDEVICE /usr 
    3614 
    3715PATH="${PATH}:/usr/bin" 
Note: See TracChangeset for help on using the changeset viewer.