Ignore:
Timestamp:
01/10/08 09:01:12 (6 years ago)
Author:
alanbach-guest
Message:
  • Updated compile-iso.bash
  • Added chroot.bash, chroot helper script
  • Added start-qemu.bash, to start qemu for iso testing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/compile-iso.bash

    r2728 r2797  
    11#!/bin/bash 
    22# Bash script to compile Parsix ISOs from source 
    3 # Coyright 2005-2007 Alan Baghumian / GNU/GPL 
     3# Coyright 2005-2008 Alan Baghumian / GNU/GPL 
    44 
    5 PUBLISHER="Parsix Project" 
     5publisher="Parsix Project" 
    66 
    77if [ -z "${1}" -o -z "${2}" -o -z "${3}" ]; then 
     
    1010fi 
    1111 
     12if [ "${1}" != "source32" -a "${1}" != "source64" ]; then 
     13    echo "Invalid root directory." 
     14    exit 
     15fi 
     16 
    1217if [ "${1}" == "source32" ]; then 
    13      MASTER="master32" 
    14      DEBDIR="deb32" 
     18     master="master32" 
     19     debdir="deb32" 
    1520else 
    16      MASTER="master64" 
    17      DEBDIR="deb64" 
     21     master="master64" 
     22     debdir="deb64" 
    1823fi 
    1924 
    2025for x in ${1}/PARSIX/var/cache/apt/archives/*.deb 
    2126do 
    22         mv $x ${DEBDIR}/ &>/dev/null 
     27        mv $x ${debdir}/ &>/dev/null 
    2328done 
    2429 
    25 rm $MASTER/PARSIX/PARSIX &> /dev/null 
     30rm ${master}/PARSIX/PARSIX &> /dev/null 
    2631 
    2732if [ -f ${1}/PARSIX/root/.bash_history ]; then 
     
    3540 
    3641# Refresh RC links 
    37 rm ${1}/PARSIX/etc/rc*.d/* &>/dev/null 
     42rm  ${1}/PARSIX/etc/rc*.d/* &>/dev/null 
    3843(cd ${1}/PARSIX/etc/rc0.d/ && ln -s ../init.d/live-halt S90live-halt)  
    3944(cd ${1}/PARSIX/etc/rc3.d/ && ln -s ../init.d/pis S05pis) 
     
    4954sed -i s/"Name=Balsa$"/"Name=Balsa Email Client"/g ${1}/PARSIX/usr/share/applications/balsa.desktop &>/dev/null 
    5055sed -i s/"Name=gFTP$"/"Name=Gnome FTP Client"/g ${1}/PARSIX/usr/share/applications/gftp.desktop &>/dev/null 
     56sed -i s/"Name=Wammu$"/"Name=Mobile Phone Manager"/g ${1}/PARSIX/usr/share/applications/wammu.desktop &>/dev/null 
     57sed -i s/"Categories=Utility;ContactManagement;Office;GTK;"/"Categories=Utility;ContactManagement;GTK;"/g ${1}/PARSIX/usr/share/applications/wammu.desktop &>/dev/null 
    5158sed -i s/"Exec=\/usr\/sbin\/pppoeconf"/"Exec=gksu \/usr\/sbin\/pppoeconf"/g ${1}/PARSIX/usr/share/applications/pppoeconf.desktop &>/dev/null 
    5259 
    5360# SquashFS Compression 
    54 mksquashfs ${1}/PARSIX/ $MASTER/PARSIX/PARSIX -b 65536 
     61mksquashfs ${1}/PARSIX/ ${master}/PARSIX/PARSIX -b 65536 
    5562 
    5663# Generate ISO 
    57 (cd ${MASTER}/ && find -type f -not -name md5sums -not -name boot.cat -not -name isolinux.bin -exec md5sum '{}' \; > PARSIX/md5sums) 
     64(cd ${master}/ && find -type f -not -name md5sums -not -name boot.cat -not -name isolinux.bin -exec md5sum '{}' \; > PARSIX/md5sums) 
    5865 
    59 mkisofs -pad -l -r -J -v -V ${2} -P "$PUBLISHER" -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o iso/${3} ${MASTER}/ 
     66mkisofs -pad -l -r -J -v -V ${2} -P "${publisher}" -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o iso/${3} ${master}/ 
    6067 
Note: See TracChangeset for help on using the changeset viewer.