~inx-devel/inx/buildinx

« back to all changes in this revision

Viewing changes to buildinx

  • Committer: Peter Garrett
  • Date: 2008-09-20 17:15:55 UTC
  • Revision ID: inx-one@optusnet.com.au-20080920171555-34cgcdl71m32qv5c
Temporary fix for buildinx to make sure ceni is installed (ugly).

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
green ; echo -e "\nBuildinx up and running...\n" ; sleep 1 ; white
55
55
 
56
56
# Variables for version to build, repo mirror etc.
 
57
export ARCH=i386                 # We don't do amd64 etc...
57
58
export NAME=$1                   # First argument is desired name
58
59
export DEBOOTSTRAP_LATEST=1.0.8  # As of writing: March 2008 - Edit as appropriate
59
60
export DEV=intrepid              # Development version as at May 2008 - Edit as appropriate
76
77
export INX_DIR=buildinx
77
78
export INX_EXTRAS="inx-extras"
78
79
export SUITE_SCRIPTS=scripts.tar.gz # Removed suite options - hardy only for this version
 
80
export CENI_DEB=ceni_1.38_all.deb
79
81
 
80
82
# Make a general directory to contain all the Buildinx cruft ;-)
81
83
if ! [ -d BuildInxWorkingDirectory ] ; then mkdir BuildInxWorkingDirectory ; fi
194
196
                echo -e "\nDownloading and installing a minimal bootstrap chroot. Please wait.\n"
195
197
                sleep 3
196
198
                white
197
 
                if ! debootstrap $SUITE ./chroot $PACKAGEMIRROR ; then
 
199
                if ! debootstrap --arch=$ARCH $SUITE ./chroot $PACKAGEMIRROR ; then
198
200
                        echo -e "\nDebootstrap failed... Cleaning up... exiting.\n"
199
201
                        # Clean up
200
202
                        cd .. ; rm -rf "$WORK_DIR"
219
221
                # Install extra repositories if enabled
220
222
                if [ $EXTRAS ]; then echo "deb $PACKAGEMIRROR $EXTRAS" >> ./chroot/etc/apt/sources.list ; fi
221
223
 
 
224
                # Ceni is a ring-in from Sidux... download the deb to chroot/var/cache/apt/archives...
 
225
                wget --continue -T 5 "$INX_SITE"/"$INX_DIR"/"$CENI_DEB" -O ./chroot/var/cache/apt/archives/"$CENI_DEB"
 
226
 
222
227
                if ! chroot ./chroot apt-get update ; then
223
228
                        echo -e "\nApt-get update in the chroot failed. Please check your mirror and network. Exiting...\n"
224
229
                        exit 1
228
233
                        # Makes setting LANG easier. Whiptail is not installed early enough.
229
234
                        chroot ./chroot apt-get install dialog 
230
235
                fi
231
 
 
 
236
                
 
237
                
232
238
                # Grab and install the lot.
233
239
 
234
240
                chroot ./chroot dpkg --set-selections < ../"$INX_EXTRAS"/selections
247
253
                white
248
254
 
249
255
                if ! chroot ./chroot apt-get dselect-upgrade ; then
250
 
                        # Try to fix unconfigured packages - e.g. vifm causes some issues with hardy
 
256
                        # Try to fix unconfigured packages - e.g. vifm causes some issues with hardy. Ceni needs this too?
251
257
                        chroot ./chroot aptitude -f install     # 'apt-get -f install' seems to fail here, though it isn't fatal.
252
258
                        chroot ./chroot dpkg --configure --pending # Never rely on the frontend to do a backends job :)
 
259
                        chroot ./chroot dpkg -i /var/cache/apt/archives/"$CENI_DEB" # Work-around for ceni... :/
253
260
                        chroot ./chroot apt-get clean           #  We don't want cache bloating the final ISO
254
261
                else
 
262
                        chroot ./chroot dpkg -i /var/cache/apt/archives/"$CENI_DEB" # Work-around for ceni... :/
255
263
                        chroot ./chroot apt-get clean
256
264
                fi
257
265
        else