Changeset 150


Ignore:
Timestamp:
Jun 28, 2010, 11:30:16 PM (14 years ago)
Author:
jazz
Message:
  • modified test-live-helper.sh
    • add chroot hook to install jdk and hadoop
  • add hook/install-hadoop
    • chroot hook for jdk and hadoop
  • add Makefile
    • some simple rules for build and clean
Location:
drbl-hadoop-live
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • drbl-hadoop-live/test-live-helper.sh

    r149 r150  
    99## [2] /opt/drbl/sbin/create-drbl-live (from drbl - http://drbl.sf.net)
    1010## [3] man lh_config and lh_build
     11
     12## Check root privileges
     13if [ `id -u` != 0 ]; then
     14  echo "[ERROR] This script must run as root or sudo !!"
     15  exit
     16fi
    1117
    1218## Check current distribution is debian-like or not
     
    4046lh clean --binary
    4147# [Note] option '--categories' is only avaible at live-helper 1.0.3-2
    42 lh config -b iso --binary-indices disabled -f minimal --cache enabled --cache-indices enabled --categories 'main non-free' -d lenny --hostname hadoop -m http://free.nchc.org.tw/debian --mirror-chroot http://free.nchc.org.tw/debian --mirror-chroot-security http://free.nchc.org.tw/debian-security --mirror-binary http://free.nchc.org.tw/debian --mirror-binary-security http://free.nchc.org.tw/debian-security --username hadoop --packages 'ssh sudo xserver-xorg-video-vesa xinit xfonts-base x11-xserver-utils xterm openbox iceweasel dhcp3-client' -k 686
     48lh config -b iso --binary-indices disabled -f minimal --cache enabled --cache-indices enabled -d lenny --hostname hadoop -m http://free.nchc.org.tw/debian --mirror-chroot http://free.nchc.org.tw/debian --mirror-chroot-security http://free.nchc.org.tw/debian-security --mirror-binary http://free.nchc.org.tw/debian --mirror-binary-security http://free.nchc.org.tw/debian-security --username hadoop --packages 'net-tools wireless-tools ssh sudo xserver-xorg-video-vesa xinit xfonts-base x11-xserver-utils xterm openbox iceweasel dhcp3-client' -k 686
    4349
    44 # add non-free apt repository for chroot stage
    45 echo << EOF > config/chroot_sources/non-free.chroot
    46 deb http://free.nchc.org.tw/debian lenny non-free
    47 EOF
     50cp hook/* config/chroot_local-hooks/
    4851
    4952lh build
    5053
    5154if [ -f binary.iso ]; then
    52   cp binary.iso `date +"hadoop-live-%y%m%d%H%M.iso"`
     55  filename=`date +"hadoop-live-%y%m%d%H%M"`
     56  cp binary.iso "$filename.iso"
     57  cp binary.packages "$filename.packages"
    5358fi
Note: See TracChangeset for help on using the changeset viewer.