~inx-devel/inx/buildinx

« back to all changes in this revision

Viewing changes to buildinx

  • Committer: Peter Garrett
  • Date: 2008-09-21 09:50:06 UTC
  • Revision ID: inx-one@optusnet.com.au-20080921095006-m27nqokwsusjx3xi
Reverted ceni workarounds - using David Symons' inx-devel ppa upload.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        echo -e "Or become root before running "$0"\n"
51
51
        exit 1
52
52
elif ls -d /rofs > /dev/null 2>&1 ; then # See if there's a /rofs - if so, this is probably the live CD
53
 
        echo -e "\nYou appear to be running $0 from the live CD..."
54
 
        echo -e "This would be kind of pointless - try copying the script"
 
53
        echo -e "\nYou appear to be running $0 from the live CD... You have a /rofs directory."
 
54
        echo -e "If so, this would be kind of pointless - try copying the script"
55
55
        echo -e "as root to your hard drive or something first, unless"
56
56
        echo -e "you have some clever ideas about it, or this is wrong :-)\n"
57
 
        echo -e  "Go ahead anyway? (default is n for 'no')\n "
 
57
        echo -e "Go ahead anyway? (default is n for 'no')\n "
58
58
        read -s -n 1 GOAHEAD
59
59
        if [ "$GOAHEAD" = y -o "$GOAHEAD" = Y ] ; then
60
60
            :
81
81
export NONFREE="multiverse"      # Well, quite few of these are "libre" IMO
82
82
export EXTRAS=""                 # For debian you would probably need at least "multimedia"
83
83
export PACKAGEMIRROR="http://$MIRROR/${MIRROR_SUBDIR}$DISTRO"
 
84
export INX_PPA="deb http://ppa.launchpad.net/inx-devel/ubuntu hardy main"
84
85
export DEBOOTSTRAP_PACKAGE=debootstrap_"$DEBOOTSTRAP_LATEST"_all.deb
85
86
export WORK_DIR="$1"-inx
86
87
export LC_ALL=C
89
90
export INX_DIR=buildinx
90
91
export INX_EXTRAS="inx-extras"
91
92
export SUITE_SCRIPTS=scripts.tar.gz # Removed suite options - hardy only for this version
92
 
export CENI_DEB=ceni_1.38_all.deb
 
93
 
93
94
 
94
95
# Make a general directory to contain all the Buildinx cruft ;-)
95
96
if ! [ -d BuildInxWorkingDirectory ] ; then mkdir BuildInxWorkingDirectory ; fi
229
230
                echo "deb $PACKAGEMIRROR $SUITE $MAIN $CONTRIB $NONFREE"            >> ./chroot/etc/apt/sources.list
230
231
                echo "deb $PACKAGEMIRROR "$SUITE"-updates $MAIN $CONTRIB $NONFREE"  >> ./chroot/etc/apt/sources.list
231
232
                echo "deb $PACKAGEMIRROR "$SUITE"-security $MAIN $CONTRIB $NONFREE" >> ./chroot/etc/apt/sources.list
232
 
 
 
233
                # INX PPA on Launchpad
 
234
                echo "$INX_PPA"                                        >> ./chroot/etc/apt/sources.list 
233
235
                # Install extra repositories if enabled
234
236
                if [ $EXTRAS ]; then echo "deb $PACKAGEMIRROR $EXTRAS" >> ./chroot/etc/apt/sources.list ; fi
235
237
 
236
 
                # Ceni is a ring-in from Sidux... download the deb to chroot/var/cache/apt/archives...
237
 
                if ! [ -f .ceni_workaround ] ; then
238
 
                    wget --continue -T 5 "$INX_SITE"/"$INX_DIR"/"$CENI_DEB" -O ./chroot/var/cache/apt/archives/"$CENI_DEB"
239
 
                fi
240
 
                
241
238
                if ! chroot ./chroot apt-get update ; then
242
239
                        echo -e "\nApt-get update in the chroot failed. Please check your mirror and network. Exiting...\n"
243
240
                        exit 1
248
245
                        chroot ./chroot apt-get install dialog 
249
246
                fi
250
247
                
251
 
                
 
248
                # We can't sign INX ppa packages ... Yet.     So, grab this first...
 
249
                echo -e "\nThis step grabs specific packages from the INX \"Personal Package Archive\""
 
250
                echo -e "on launchpad.net. These curently cannot be \"signed\", so you have to agree"
 
251
                echo -e "to their installation. If this worries you, you can check the packages at"
 
252
                yellow
 
253
                echo -e " https://launchpad.net/~inx-devel/+archive \n"
 
254
                white
 
255
                echo -e "Hit any key to continue... \n"
 
256
                read -s -n 1
 
257
                        chroot ./chroot apt-get install ceni
 
258
                        
252
259
                # Grab and install the lot.
253
260
 
254
261
                chroot ./chroot dpkg --set-selections < ../"$INX_EXTRAS"/selections
261
268
                echo -e "The kernel configuration questions may ask if you \"Want to abort\" . Say no."
262
269
                echo -e "You probably want to leave the time zone as \"unknown\"\n"
263
270
                green
264
 
                echo -e "\nHit any key to continue. Apt will show a long list, then ask you if you want to proceed."
265
 
                echo -e "The answer is probably \"yes\", unless you plan to subvert the INX menus. ;-)"
 
271
                echo -e "\nHit any key to continue. Apt will show a long list, then proceed to download and install."
266
272
                read -s -n 1
267
273
                white
268
274
 
269
275
                if ! chroot ./chroot apt-get dselect-upgrade ; then
270
 
                        # Try to fix unconfigured packages - e.g. vifm causes some issues with hardy. Ceni needs this too?
 
276
                        # Try to fix unconfigured packages - e.g. vifm causes some issues with hardy.
271
277
                        chroot ./chroot aptitude -f install     # 'apt-get -f install' seems to fail here, though it isn't fatal.
272
278
                        chroot ./chroot dpkg --configure --pending # Never rely on the frontend to do a backends job :)
273
 
                        if ! [ -f .ceni_workaround ] ; then
274
 
                            chroot ./chroot dpkg -i /var/cache/apt/archives/"$CENI_DEB" # Work-around for ceni... :/
275
 
                            touch .ceni_workaround
276
 
                        fi    
277
279
                        chroot ./chroot apt-get clean           #  We don't want cache bloating the final ISO
278
280
                else
279
 
                        if ! [ -f .ceni_workaround ] ; then
280
 
                            chroot ./chroot dpkg -i /var/cache/apt/archives/"$CENI_DEB" # Work-around for ceni... :/
281
 
                            touch .ceni_workaround
282
 
                        fi    
283
281
                        chroot ./chroot apt-get clean
284
282
                fi
285
283
        else