source: overlays/install-overlay/etc/pcbsd-rc.sh @ 6e0ee8d

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 6e0ee8d was 6e0ee8d, checked in by Kris Moore <kris@…>, 17 months ago

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

  • Property mode set to 100644
File size: 1.3 KB
Line 
1#!/bin/sh
2
3# Set shell to ignore SIGINT (2), but not children;
4trap : 2
5
6# Do a check of available memory 
7sysMem=`/sbin/sysctl hw.realmem | /bin/cut -d ' ' -f 2`
8minSize=`/bin/expr 250 \* 1024 \* 1024`
9if [ $sysMem -lt $minSize ] ; then
10        echo "Warning: PC-BSD requires a minimum of 256MB of RAM for optimal performance."
11        echo "You may experience problems with less than this ammount."
12        echo ""
13        echo "Press ENTER to continue"
14        read tmp
15fi
16
17# Load geom_uzip
18kldload geom_uzip
19
20# Create a /tmp file system with some extra space
21/sbin/mdmfs -S -s 10M -O space md6 /tmp
22
23# If we have a LIVE DVD image, boot with it
24if [ -e "/dist/PCBSD.ufs.uzip" ]
25then
26  MEM=`sysctl hw.realmem | /bin/cut -d " " -f 2`
27
28  # We are running in LIVE mode
29  sh /etc/SetupLive.sh
30else
31  # Installation medium ONLY
32
33  # We are running a regular Install
34  sh /etc/SetupInstall.sh
35fi
36
37# Extract the etc-dist.txz
38/sbin/mdmfs -S -s 5M -O space md10 /etc
39/usr/bin/tar xvf /uzip/etc-dist.txz -C /etc >/dev/null 2>/dev/null
40
41# Extract the var-dist.txz
42/sbin/mdmfs -S -s 5M -O space md9 /var
43/usr/bin/tar xvf /uzip/var-dist.txz -C /var >/dev/null 2>/dev/null
44
45# Extract the root-dist.txz
46/sbin/mdmfs -S -s 15M -O space md8 /root
47/usr/bin/tar xvf /uzip/root-dist.txz -C /root >/dev/null 2>/dev/null
Note: See TracBrowser for help on using the repository browser.