Changeset 150 for drbl-hadoop-live
- Timestamp:
- Jun 28, 2010, 11:30:16 PM (15 years ago)
- Location:
- drbl-hadoop-live
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-hadoop-live/test-live-helper.sh
r149 r150 9 9 ## [2] /opt/drbl/sbin/create-drbl-live (from drbl - http://drbl.sf.net) 10 10 ## [3] man lh_config and lh_build 11 12 ## Check root privileges 13 if [ `id -u` != 0 ]; then 14 echo "[ERROR] This script must run as root or sudo !!" 15 exit 16 fi 11 17 12 18 ## Check current distribution is debian-like or not … … 40 46 lh clean --binary 41 47 # [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 68648 lh 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 43 49 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 50 cp hook/* config/chroot_local-hooks/ 48 51 49 52 lh build 50 53 51 54 if [ -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" 53 58 fi
Note: See TracChangeset
for help on using the changeset viewer.