Forward port the changes from catalyst 1.1.9 to 1.1.10.10 to catalyst2. Need to...
authorEric Edgar <rocket@gentoo.org>
Tue, 9 Aug 2005 19:02:31 +0000 (19:02 +0000)
committerEric Edgar <rocket@gentoo.org>
Tue, 9 Aug 2005 19:02:31 +0000 (19:02 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@821 d1e1f19c-881f-0410-ab34-b69fee027534

31 files changed:
AUTHORS
ChangeLog
arch/hppa.py
catalyst
examples/livecd-stage2_template.spec
examples/snapshot_template.spec
files/catalyst.conf
livecd/files/Getting_Online.txt
livecd/files/generic.motd.txt
livecd/files/livecd-bashrc
livecd/files/livecd-local.start
livecd/files/x86-help.msg
modules/catalyst_lock.py
modules/catalyst_support.py
modules/livecd_stage2_target.py
targets/embedded/embedded-controller.sh
targets/grp/grp-chroot.sh
targets/livecd-stage2/livecd-stage2-controller.sh
targets/stage1/stage1-chroot.sh
targets/stage2/stage2-chroot.sh
targets/stage2/stage2-preclean-chroot.sh
targets/stage3/stage3-preclean-chroot.sh
targets/stage4/stage4-controller.sh
targets/support/bootloader-setup.sh
targets/support/chroot-functions.sh
targets/support/create-iso.sh
targets/support/filesystem-functions.sh
targets/support/functions.sh
targets/support/kmerge.sh
targets/support/livecdfs-update.sh
targets/support/target_image_setup.sh

diff --git a/AUTHORS b/AUTHORS
index 6bb5b0d41e609f3765138d5e91209b90fd50f5bd..2f381b2066e32375b977289bf9aa6c6aced8156b 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -13,3 +13,4 @@ Mike Frysinger <vapier@gentoo.org>
 Gustavo Zacarias <gustavoz@gentoo.org>
 Robert Paskowitz <r2d2@gentoo.org>
 David Bryson <mutex@gentoo.org>
+Daniel Ostrow <dostrow@gentoo.org>
index 5a32a019b3af69e10f5e4d9b4a187aca9025e555..38ca5f811eda2156c0ebada302a2f3211e263713 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,25 @@
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.313 2005/08/09 14:24:45 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.314 2005/08/09 19:02:31 rocket Exp $
+
+  09 Aug 2005; Eric Edgar <rocket@gentoo.org> AUTHORS, arch/hppa.py,
+  catalyst, examples/livecd-stage2_template.spec,
+  examples/snapshot_template.spec, files/catalyst.conf,
+  livecd/files/Getting_Online.txt, livecd/files/generic.motd.txt,
+  livecd/files/livecd-bashrc, livecd/files/livecd-local.start,
+  livecd/files/x86-help.msg, modules/catalyst_lock.py,
+  modules/catalyst_support.py, modules/livecd_stage2_target.py,
+  targets/embedded/embedded-controller.sh, targets/grp/grp-chroot.sh,
+  targets/livecd-stage2/livecd-stage2-controller.sh,
+  targets/stage1/stage1-chroot.sh, targets/stage2/stage2-chroot.sh,
+  targets/stage2/stage2-preclean-chroot.sh,
+  targets/stage3/stage3-preclean-chroot.sh,
+  targets/stage4/stage4-controller.sh, targets/support/bootloader-setup.sh,
+  targets/support/chroot-functions.sh, targets/support/create-iso.sh,
+  targets/support/filesystem-functions.sh, targets/support/functions.sh,
+  targets/support/kmerge.sh, targets/support/livecdfs-update.sh,
+  targets/support/target_image_setup.sh:
+  Forward port the changes from catalyst 1.1.9 to 1.1.10.10 to catalyst2. Need
+  to look at gamecdfs-update.sh yet.
 
   09 Aug 2005; Eric Edgar <rocket@gentoo.org>
   modules/generic_stage_target.py:
index 0b20fe1a965d7d6177a9e6b6e9e5cfa0505ed095..ece66a2dcbbaf3a8f8d2e4ccc25771ac59664373 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/hppa.py,v 1.5 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/hppa.py,v 1.6 2005/08/09 19:02:31 rocket Exp $
 
 import builder,os
 from catalyst_support import *
@@ -12,7 +12,7 @@ class generic_hppa(builder.generic):
                self.settings["mainarch"]="hppa"
                self.settings["CHROOT"]="chroot"
                self.settings["CFLAGS"]="-O2 -pipe"
-               self.settings["CXXFLAGS"]="-O1 -pipe"
+               self.settings["CXXFLAGS"]="-O2 -pipe"
 
 class arch_hppa(generic_hppa):
        "Builder class for hppa systems"
index a9dedc91e4794bc711a382894cac243be7108e07..78e1c1256b4ee1c93cdf7d9464f673b500569650 100755 (executable)
--- a/catalyst
+++ b/catalyst
@@ -1,7 +1,7 @@
 #!/usr/bin/python
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.88 2005/08/09 14:12:26 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.89 2005/08/09 19:02:31 rocket Exp $
 
 # Maintained in full by:
 # Eric Edgar <rocket@gentoo.org>
@@ -10,7 +10,7 @@
 import os,sys,imp,string,getopt
 import pdb
 __maintainer__="Chris Gianelloni <wolf31o2@gentoo.org>"
-__version__="2.0.0_pre2"
+__version__="2.0.0_pre3"
 
 conf_values={}
 
index 926c32c418b8ac00c40747e57a4230ff0d64fe6c..66462404c562f254fd337776889f8f1e8a8b42a6 100644 (file)
@@ -63,7 +63,6 @@ portage_confdir:
 # zisofs - This uses in-kernel compression and is supported on all platforms.
 # normal - This creates a loop without compression.
 # noloop - This copies the files to the CD directly, withuot using a loopback.
-# gcloop - This is deprecated and only provided for backwards compatibility.
 # example:
 # livecd/cdfstype: squashfs
 livecd/cdfstype:
@@ -119,6 +118,12 @@ livecd/splash_type:
 # livecd/splash_theme: livecd-2005.0
 livecd/splash_theme:
 
+# This is a set of arguments that get passed to the bootloader for your CD.  It
+# is used on the x86/amd64 release media to enable keymap selection.
+# example:
+# livecd/bootargs: dokeymap
+livecd/bootargs:
+
 # This is a set of arguments that will be passed to genkernel for all kernels
 # defined in this target.  It is useful for passing arguments to genkernel that
 # are not otherwise available via the livecd-stage2 spec file.
@@ -134,6 +139,14 @@ livecd/gk_mainargs:
 # livecd/linuxrc:
 livecd/linuxrc:
 
+# This option allows you to specify your own linuxrc script for genkernel to use
+# when building your CD.  This is not checked for functionality, so it is up to
+# you to debug your own script.  We do not use one for the official release
+# media, so there will not be one listed below.
+# example:
+# livecd/linuxrc:
+livecd/linuxrc:
+
 # This option controls quite a bit of catalyst internals and sets up several
 # defaults.  Each type behaves slightly differently and is explained below.
 # gentoo-release-minimal - This creates an official minimal InstallCD.
@@ -145,6 +158,14 @@ livecd/linuxrc:
 # livecd/type: gentoo-release-minimal
 livecd/type:
 
+# This is for the README.txt on the root of the CD.  For Gentoo releases, we
+# use a default README.txt, and this will be used on your CD if you do not
+# provide one yourself.  Since we do not use this for the official releases, it
+# is left blank below.
+# example:
+# livecd/readme:
+livecd/readme:
+
 # This is for the CD's message of the day.  It is not required for official
 # release media, as catalyst builds a default motd when the livecd/type is set
 # to one of the gentoo-* options.  This setting overrides the default motd even
@@ -162,10 +183,11 @@ livecd/motd:
 livecd/modblacklist:
 
 # This is for adding init scripts to runlevels.  The syntax for the init script
-# is the script name, followed by a colon, followed by the runlevel in which you
-# want the script to run.  It looks like spind:default and is space delimited.
+# is the script name, followed by a pipe, followed by the runlevel in which you
+# want the script to run.  It looks like spind|default and is space delimited.
 # We do not use this on the official media, as catalyst sets up the runlevels
 # correctly for us.  Since we do not use this, it is left blank below.
+# This option will automatically create missing runlevels
 # example:
 # livecd/rcadd:
 livecd/rcadd:
@@ -216,7 +238,8 @@ livecd/xinitrc:
 # This option is used to create non-root users on your CD.  It takes a space
 # separated list of user names.  These users will be added to the following
 # groups: users,wheel,audio,games,cdrom,usb
-# If this is specified in your spec file, then the first user is also the user # used to start X. Since this is not used on the release media, it is blank.
+# If this is specified in your spec file, then the first user is also the user
+# used to start X. Since this is not used on the release media, it is blank.
 # example:
 # livecd/users:
 livecd/users:
@@ -277,13 +300,6 @@ boot/kernel/gentoo/use:
 # boot/kernel/gentoo/extraversion:
 boot/kernel/gentoo/extraversion:
 
-# This option is a list of packages which genkernel will emerge after the kernel
-# has been configured, but before it is compiled.  This option is used for the
-# exclusive purpose of including our gensplash theme into the kernel bzImage.
-# example:
-# boot/kernel/gentoo/postconf: splashutils splash-themes-livecd
-boot/kernel/gentoo/postconf:
-
 # This option is for merging kernel-dependent packages and external modules that
 # are configured against this kernel label.
 # example:
index 30acb6e94697535a7710c56effbd036b835e9b82..80ba66a39430763adc5bfc54ecf437c86f320849 100644 (file)
@@ -1,6 +1,6 @@
 # portage snapshot example specfile
 
-# Thsi is the target for creating a snapshot.
+# This is the target for creating a snapshot.
 # example:
 # target: snapshot
 target:
@@ -13,5 +13,5 @@ version_stamp:
 # This option specifies the location to a portage overlay that you would like to
 # have included in this snapshot.
 # example:
-# portdir_overlay: /usr/local/portdir_overlay
+# portdir_overlay: /usr/local/portage
 portdir_overlay:
index eba537a1b4b29569555d875187084f4a13212f00..83237298f88f1900b026dc11b2f56031674cbb5f 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/files/catalyst.conf,v 1.11 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/files/catalyst.conf,v 1.12 2005/08/09 19:02:31 rocket Exp $
 
 # Simple desriptions of catalyst settings. Please refer to the online
 # documentation for more information.
@@ -17,6 +17,9 @@ distdir="/usr/portage/distfiles"
 #      prematurely)
 # kerncache = keeps a tbz2 of your built kernel and modules (useful if your
 #      build stops in livecd-stage2)
+# seedcache = use the build output of a previous target if it exists to speed up 
+#      the copy
+# snapcache = cache the snapshot so that it can be bind-mounted into the chroot.
 options="pkgcache kerncache"
 
 # sharedir specifies where all of the catalyst runtime executables are. Most
@@ -27,6 +30,10 @@ sharedir="/usr/lib/catalyst"
 # also where it will put its temporary files and caches.
 storedir="/var/tmp/catalyst"
 
+# snapshot_cache specifies where the snapshots will be cached to if snapcache is
+# enabled in the options.
+# snapshot_cache="<path_to_new_cache_dir>"
+
 # envscript allows users to set options such as http proxies, MAKEOPTS,
 # GENTOO_MIRRORS, or any other environment variables needed for building.
 # The envscript file sets environment variables like so:
index f682d12fea61534879c502a533be62c8643d16ea..1cee6d4b544ae29c8bd0636fb27c536f7cd95468 100644 (file)
@@ -81,6 +81,8 @@
      * Regular Ethernet users should continue with Default: Using net-setup
      * ADSL users should continue with Alternative: Using RP-PPPoE
      * PPTP users should continue with Alternative: Using PPTP
+     * Speedtouch USB users should continue with Alternative: Using Speedtouch
+       USB
 
    Default: Using net-setup
 
 
    Now continue with Preparing the Disks.
 
+   Alternative: Using Speedtouch USB
+
+   First, you need to help hotplug in finding the Alcatel Speedtouch USB
+   modem. Add the following line to /etc/hotplug/usb.usermap:
+
+   Code Listing 10: Adding Alcatel Speedtouch support
+   speedtouch 0x0003 0x06b9 0x4061 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 "Alcatel SpeedTouch USB"
+   
+   Next, create /etc/ppp/peers/adsl and enter the following information:
+
+   Code Listing 11: Editing /etc/ppp/peers/adsl
+   noipdefault
+   defaultroute
+   # Change this to the login for your ISP.
+   user "user@provider.com"
+   passive
+   persist
+   holdoff 4
+   maxfail 25
+   plugin pppoatm.so
+   # Changes by country - http://www.linux-usb.org/SpeedTouch/faq/index.html#q12
+   0.38
+   
+   If your ISP provides the name servers, add "usepeerdns" to it as well.
+
+   Now add your login and password to the /etc/ppp/chap-secrets file:
+
+   Code Listing 12: Setting the user name and password
+   "user@provider.com"  *  "yourpassword"
+
+   Now you are all set: start up your internet connection using pppd:
+
+   Code Listing 13: Starting the Internet connection
+   # pppd call adsl
+   
    c. Manual Network Configuration
 
    Loading the Appropriate Network Modules
 
    To find out what kernel modules we provide for networking, use ls:
 
-   Code Listing 10: Searching for provided modules                            
+   Code Listing 14: Searching for provided modules                            
    # ls /lib/modules/`uname -r`/kernel/drivers/net                            
 
    If you find a driver for your network card, use modprobe to load the
    kernel module:
 
-   Code Listing 11: Using modprobe to load a kernel module                    
+   Code Listing 15: Using modprobe to load a kernel module                    
    (As an example, we load the pcnet32 module)                                
    # modprobe pcnet32                                                         
 
    To check if your network card is now detected, use ifconfig. A detected
    network card would result in something like this:
 
-   Code Listing 12: Testing availability of your network card, successful     
+   Code Listing 16: Testing availability of your network card, successful     
    # ifconfig eth0                                                            
    eth0      Link encap:Ethernet  HWaddr FE:FD:00:00:00:00                    
              BROADCAST NOARP MULTICAST  MTU:1500  Metric:1                    
    If however you receive the following error, the network card is not
    detected:
 
-   Code Listing 13: Testing availability of your network card, failed         
+   Code Listing 17: Testing availability of your network card, failed         
    # ifconfig eth0                                                            
    eth0: error fetching interface information: Device not found               
 
    service). To have a network interface receive this information
    automatically, use dhcpcd:
 
-   Code Listing 14: Using dhcpcd                                              
+   Code Listing 18: Using dhcpcd                                              
    # dhcpcd eth0                                                              
    Some network admins require that you use the                               
    hostname and domainname provided by the DHCP server.                       
    settings on your card, you can use iwconfig. Running iwconfig might show
    something like:
 
-Code Listing 15: Showing the current wireless settings                           
+Code Listing 19: Showing the current wireless settings                           
 # iwconfig eth0                                                                  
 eth0      IEEE 802.11-DS  ESSID:"GentooNode"                                     
           Mode:Managed  Frequency:2.442GHz  Access Point: 00:09:5B:11:CC:F2      
@@ -262,7 +299,7 @@ eth0      IEEE 802.11-DS  ESSID:"GentooNode"
    you are not using WEP, then your wireless is working. If you need to
    change your ESSID, or add a WEP key, you can issue the following commands:
 
-   Code Listing 16: Changing ESSID and/or adding WEP key                      
+   Code Listing 20: Changing ESSID and/or adding WEP key                      
    (This sets the network name to "GentooNode")                               
    # iwconfig eth0 essid GentooNode                                           
                                                                               
@@ -295,7 +332,7 @@ eth0      IEEE 802.11-DS  ESSID:"GentooNode"
    255. Well, at least that is how we perceive it. In reality, such an IP
    address consists of 32 bits (ones and zeros). Let's view an example:
 
-   Code Listing 17: Example of an IP address                                  
+   Code Listing 21: Example of an IP address                                  
    IP Address (numbers):   192.168.0.2                                        
    IP Address (bits):      11000000 10101000 00000000 00000010                
                            -------- -------- -------- --------                
@@ -312,7 +349,7 @@ eth0      IEEE 802.11-DS  ESSID:"GentooNode"
    on the ones is the network-part, the other one is the host-part. As usual,
    the netmask can be written down as an IP-address.
 
-   Code Listing 18: Example of network/host separation                        
+   Code Listing 22: Example of network/host separation                        
    IP-address:    192      168      0         2                               
                11000000 10101000 00000000 00000010                            
    Netmask:    11111111 11111111 11111111 00000000                            
@@ -327,7 +364,7 @@ eth0      IEEE 802.11-DS  ESSID:"GentooNode"
    network, but with only ones as host-part. Every host on your network
    listens to this IP address. It is truly meant for broadcasting packets.
 
-   Code Listing 19: Broadcast address                                         
+   Code Listing 23: Broadcast address                                         
    IP-address:    192      168      0         2                               
                11000000 10101000 00000000 00000010                            
    Broadcast:  11000000 10101000 00000000 11111111                            
@@ -369,26 +406,26 @@ eth0      IEEE 802.11-DS  ESSID:"GentooNode"
    with your IP address, ${BROADCAST} with your broadcast address and
    ${NETMASK} with your netmask:
 
-   Code Listing 20: Using ifconfig                                            
+   Code Listing 24: Using ifconfig                                            
    # ifconfig eth0 ${IP_ADDR} broadcast ${BROADCAST} netmask ${NETMASK} up    
 
    Now set up routing using route. Substitute ${GATEWAY} with your gateway IP
    address:
 
-   Code Listing 21: Using route                                               
+   Code Listing 25: Using route                                               
    # route add default gw ${GATEWAY}                                          
 
    Now open /etc/resolv.conf with your favorite editor (in our example, we
    use nano):
 
-   Code Listing 22: Creating /etc/resolv.conf                                 
+   Code Listing 26: Creating /etc/resolv.conf                                 
    # nano -w /etc/resolv.conf                                                 
 
    Now fill in your nameserver(s) using the following as a template. Make
    sure you substitute ${NAMESERVER1} and ${NAMESERVER2} with the appropriate
    nameserver addresses:
 
-   Code Listing 23: /etc/resolv.conf template                                 
+   Code Listing 27: /etc/resolv.conf template                                 
    nameserver ${NAMESERVER1}                                                  
    nameserver ${NAMESERVER2}                                                  
 
index dda5e67d3409b20a4aeb60d4154ce91f0f906fe3..d02e17dd2ebe35905e3b792d1a65d6e8ccb67adf 100644 (file)
@@ -7,5 +7,5 @@ If any ethernet adapters were detected at boot, they should be auto-configured
 if DHCP is available on your network.  Type "net-setup eth0" to specify eth0 IP
 address settings by hand. 
 
-Check /boot/config-* for kernel configuration.
+Check /etc/kernels/kernel-config-* for kernel configuration(s).
 
index 16332ea9ac98caa5f385df14d1a23db0c622e0b0..a1fa24241da924f2550778dd9ade6933aaa4f024 100644 (file)
@@ -1,9 +1,15 @@
 #!/bin/bash
 
-if [ -e /usr/bin/X ]; then
-       if [ -e /etc/startx ]; then
-               rm -f /etc/startx
-               ##STARTX
-               cat /etc/motd
+if [ ! $(grep nox /proc/cmdline) ]
+then
+    if [ -x /usr/bin/X ]
+    then
+       if [ -e /etc/startx ]
+       then
+           rm -f /etc/startx
+           ##STARTX
+           [ -f /etc/motd ] && cat /etc/motd
        fi
+    fi
 fi
+
index f8fea18a54780fc65d1167aaec314255c28fb3b1..29aff4f045515a8738b9c65d48a9693f32930e89 100644 (file)
@@ -1,3 +1,4 @@
+#!/bin/bash
 # /etc/conf.d/local.start
 
 # This is a good place to load any misc.
@@ -17,3 +18,9 @@ if [ -d /usr/livecd/profiles ]
 then
        ln -sf /usr/livecd/profiles /usr/portage/profiles
 fi
+
+if [ -d /usr/livecd/eclass ]
+then
+       ln -sf /usr/livecd/eclass /usr/portage/eclass
+fi
+
index af1b79b74222a886b7525606bc0df7ad17ecb5c8..7a4fcb6ecc5dcd6d6240a39349165bb5559b2814 100755 (executable)
@@ -5,20 +5,6 @@ the -nofb counterparts to each kernel disable the framebuffer
 and splash images. Additionally, the memtest86 boot option is available
 to test local RAM for errors. To use memtest86, just type 'memtest86'.
 
-Options available to pass to your kernel of choice.
-- acpi=on       loads support for ACPI firmware
-- ide=nodma     force disabling of DMA for malfunctioning IDE devices
-- doscsi        scan for SCSI devices (breaks some ethernet cards)
-- dopcmcia      starts card services for PCMCIA CDROMs
-- nofirewire    disables firewire modules in initrd (for firewire CDROMs,etc)
-- nokeymap      disables keymap selection for non-US keyboard layouts
-- docache       cache the entire runtime portion of CD in RAM, allows you
-                to umount /mnt/cdrom to mount another CDROM.
-- nodetect      causes hwsetup/kudzu and hotplug/coldplug not to run
-- nousb         disables USB modules load from initrd
-- nodhcp        DHCP does not automatically start if NIC detected
-- nohotplug     disables loading hotplug/coldplug services
-- noapic        disable APIC (try if having hardware problems NICs,SCSI,etc)
-- hdx=stroke    allows you to partition the whole hard disk even when your BIOS
-                can't handle large hard disks
-- noload=       disables loading a specific module(s), good for debugging
+There are numerous options available that can be passed to the kernel on this
+command line.  You can read all of the options by checking README.txt on this
+CDROM.
index 4dc673de4c10187d1431b475cb8e6f1b3b5691e5..11fa1cfc30899d637221c2837ce2d14a67cf507f 100755 (executable)
@@ -1,4 +1,7 @@
 #!/usr/bin/python
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_lock.py,v 1.2 2005/08/09 19:02:31 rocket Exp $
 import os
 import fcntl
 import errno
index 69484b35570e1fc0dfa34e8ba916f7b7beb1feda..2de4debd4367bdecec8ef920df60037b964d0422 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.53 2005/08/09 14:12:26 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_support.py,v 1.54 2005/08/09 19:02:31 rocket Exp $
 
 import sys,string,os,types,re,signal,traceback,md5,time
 selinux_capable = False
@@ -627,12 +627,12 @@ def ismount(path):
        "enhanced to handle bind mounts"
        if os.path.ismount(path):
                return 1
-       a=open("/proc/mounts","r")
+       a=popen("mount")
        mylines=a.readlines()
        a.close()
        for line in mylines:
                mysplit=line.split()
-               if pathcompare(path,mysplit[1]):
+               if pathcompare(path,mysplit[2]):
                        return 1
        return 0
 
index 0aa5e09c122d1f87a7f0b1cea84d422a01c431f2..3304e332558780e791f41d69550c5ca1eb527e34 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage2_target.py,v 1.46 2005/08/09 14:12:26 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage2_target.py,v 1.47 2005/08/09 19:02:31 rocket Exp $
 
 """
 Builder class for a LiveCD stage2 build.
@@ -19,11 +19,12 @@ class livecd_stage2_target(generic_stage_target):
                self.valid_values.extend(self.required_values)
                self.valid_values.extend(["livecd/cdtar","livecd/empty","livecd/rm",\
                        "livecd/unmerge","livecd/iso","livecd/gk_mainargs","livecd/type",\
-                       "livecd/motd","livecd/overlay","livecd/modblacklist","livecd/splash_theme",\
+                       "livecd/readme","livecd/motd","livecd/overlay",\
+                       "livecd/modblacklist","livecd/splash_theme","livecd/splash_type",\
                        "livecd/rcadd","livecd/rcdel","livecd/fsscript","livecd/xinitrc",\
-                       "livecd/root_overlay","livecd/devmanager","livecd/splash_type",\
+                       "livecd/root_overlay","livecd/devmanager","livecd/users",\
                        "gamecd/conf","livecd/users","portage_overlay","livecd/cdfstype",\
-                       "livecd/linuxrc","livecd/bootargs"])
+                       "livecd/linuxrc","livecd/bootargs","gamecd/conf"])
                
                generic_stage_target.__init__(self,spec,addlargs)
                if not self.settings.has_key("livecd/type"):
index 4b8e400dffd7544b707e85925edc77b6661bdf8b..3ea50ca06aaaa3595e6e9e4b71a9abfe607e31e4 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-controller.sh,v 1.4 2005/05/25 19:28:59 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-controller.sh,v 1.5 2005/08/09 19:02:31 rocket Exp $
 
 . ${clst_sharedir}/targets/support/functions.sh
 . ${clst_sharedir}/targets/support/filesystem-functions.sh
@@ -33,13 +33,13 @@ case $1 in
                shift
                export clst_kname="$1"
                # if we have our own linuxrc, copy it in
-               if [ -n "${clst_livecd_linuxrc}" ]
+               if [ -n "${clst_linuxrc}" ]
                then
-                       cp -a ${clst_livecd_linuxrc} ${clst_chroot_path}/tmp/linuxrc
+                       cp -a ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
                fi
                exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
                exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
-               rm -f ${clst_chroot_path}/tmp/linuxrc
+               delete_from_chroot tmp/linuxrc
                exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
        
        ;;
index ebb69acc6de10ff5c38dcd111b0c0c252be1eeb7..4f4c4006cba6b31d7b0662ee0339e989173ed851 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/grp-chroot.sh,v 1.20 2005/07/07 19:57:17 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/grp-chroot.sh,v 1.21 2005/08/09 19:02:31 rocket Exp $
 
 . /tmp/chroot-functions.sh
 
@@ -24,6 +24,7 @@ setup_portage
 export USE_ORDER="env:pkg:conf:defaults"
 
 unset DISTDIR
+
 #don't grab MS core fonts, etc.
 export USE="${USE} ${clst_grp_use}"
        
index 04c233629bdcac450f27807dc2f2d44cb848ff86..16ccc28ca9651ec022c77de2cdb2c43bf5434ca0 100755 (executable)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.12 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.13 2005/08/09 19:02:31 rocket Exp $
 . ${clst_sharedir}/targets/support/functions.sh
 . ${clst_sharedir}/targets/support/filesystem-functions.sh
 
@@ -10,13 +10,13 @@ case $1 in
                export clst_kname="$1"
 
                # if we have our own linuxrc, copy it in
-               if [ -n "${clst_livecd_linuxrc}" ]
+               if [ -n "${clst_linuxrc}" ]
                then
-                       cp -a ${clst_livecd_linuxrc} ${clst_chroot_path}/tmp/linuxrc
+                       cp -a ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
                fi
                exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
                exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
-               rm -f ${clst_chroot_path}/tmp/linuxrc
+               delete_from_chroot tmp/linuxrc
                exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
 
                extract_modules ${clst_chroot_path} ${clst_kname}
@@ -87,6 +87,9 @@ case $1 in
                # Here is where we poke in our identifier
                touch $1/livecd
                
+               # Here we copy our nifty README.txt
+               cp ${clst_sharedir}/livecd/files/README.txt ${clst_cdroot_path}
+               
                ${clst_sharedir}/targets/support/bootloader-setup.sh $1
                ;;
 
index cc23b208f5b15d181c0d3cb24972401e2533dc59..df3c72d47395ac777501375c8df486337a132d72 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.35 2005/07/08 15:07:25 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.36 2005/08/09 19:02:31 rocket Exp $
        
 
 . /tmp/chroot-functions.sh
@@ -18,7 +18,17 @@ setup_myemergeopts
 export clst_buildpkgs="$(/tmp/build.py)"
 export STAGE1_USE="$(portageq envvar STAGE1_USE)"
 export USE="-* build ${STAGE1_USE}"
-export FEATURES="${clst_myfeatures}"
+export FEATURES="${clst_myfeatures} nodoc noman noinfo"
+
+## Sanity check profile
+if [ -z "${clst_buildpkgs}" ]
+then
+       echo "Your profile seems to be broken."
+       echo "Could not build a list of build packages."
+       echo "Double check your /etc/make.profile link and the 'packages' files."
+       exit 1
+fi
+
 
 ## Sanity check profile
 if [ -z "${clst_buildpkgs}" ]
@@ -32,4 +42,4 @@ fi
 ## START BUILD
 run_emerge "--noreplace ${clst_buildpkgs}"
 
-
+rm -f /var/log/emerge.log
index c0ea051ae80118ab8d26820410ed7dee8c361a5a..44753db13e72cba18b82d206736bc5e4e4de73e9 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-chroot.sh,v 1.14 2005/07/07 17:21:08 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-chroot.sh,v 1.15 2005/08/09 19:02:31 rocket Exp $
 
 . /tmp/chroot-functions.sh
 
@@ -12,7 +12,7 @@ setup_myemergeopts
 
 
 ## setup the environment
-export FEATURES="${clst_myfeatures}"
+export FEATURES="${clst_myfeatures} nodoc noman noinfo"
 
 if [ "${clst_VERBOSE}" ]
 then
@@ -28,3 +28,4 @@ fi
 
 ## START BUILD
 /usr/portage/scripts/bootstrap.sh ${bootstrap_opts} || exit 1
+
index 3cb669ee3ec5c49c286b7b698157f7be86d5e1a6..ebae84ff1bf082e4b1302e9ed3506192e6bef73c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-preclean-chroot.sh,v 1.6 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-preclean-chroot.sh,v 1.7 2005/08/09 19:02:31 rocket Exp $
 
 . /tmp/chroot-functions.sh
 update_env_settings
@@ -17,3 +17,6 @@ if [ -n "${clst_DISTCC}" ]
 then
        emerge -C sys-devel/distcc || exit 1
 fi
+
+rm -f /var/log/emerge.log
+
index 9a34beb6e14e86a5811be17beb07f20ca0fd9dba..d44a88974723778767bf247967eeeb7a643f96f2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-preclean-chroot.sh,v 1.6 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-preclean-chroot.sh,v 1.7 2005/08/09 19:02:31 rocket Exp $
 
 . /tmp/chroot-functions.sh
 update_env_settings
@@ -17,3 +17,5 @@ if [ -n "${clst_DISTCC}" ]
 then
        emerge -C sys-devel/distcc || exit 1
 fi
+
+rm -f /var/log/emerge.log
index 1f8261a7943f94e8f0755f99dfcf0a1236a404da..e2f4dd3b41cd2a9e228e2191d7d6ea8eba1a9d35 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage4/stage4-controller.sh,v 1.7 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage4/stage4-controller.sh,v 1.8 2005/08/09 19:02:31 rocket Exp $
 . ${clst_sharedir}/targets/support/functions.sh
 
 
@@ -15,13 +15,13 @@ case $1 in
                shift
                export clst_kname="$1"
                # if we have our own linuxrc, copy it in
-               if [ -n "${clst_livecd_linuxrc}" ]
+               if [ -n "${clst_linuxrc}" ]
                then
-                       cp -a ${clst_livecd_linuxrc} ${clst_chroot_path}/tmp/linuxrc
+                       cp -a ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
                fi
                exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
                exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
-               rm -f ${clst_chroot_path}/tmp/linuxrc
+               delete_from_chroot tmp/linuxrc
                exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
                extract_modules ${clst_chroot_path} ${clst_kname}
                extract_kernel ${clst_chroot_path}/boot ${clst_kname}
index 08354836a2adaf5e9efe0a04e521d6aa60d77a5d..e2e0fd139e74cb4a1b1612b122de4512974acc13 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/bootloader-setup.sh,v 1.10 2005/07/05 17:48:21 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/bootloader-setup.sh,v 1.11 2005/08/09 19:02:31 rocket Exp $
 . ${clst_sharedir}/targets/support/functions.sh
 . ${clst_sharedir}/targets/support/filesystem-functions.sh
 
@@ -34,27 +34,9 @@ case ${clst_mainarch} in
                icfg=$1/boot/palo.conf
                kmsg=$1/boot/kernels.msg
                hmsg=$1/boot/help.msg
-               echo "--commandline=0/${first} initrd=${x}.igz root=/dev/ram0 init=/linuxrc ${cmdline_opts}" >> ${icfg}
+               echo "--commandline=0/${first} initrd=${first}.igz root=/dev/ram0 init=/linuxrc ${cmdline_opts}" >> ${icfg}
                echo "--bootloader=boot/iplboot" >> ${icfg}
-               echo "--ramdisk=boot/${x}.igz" >> ${icfg}
-
-#              for x in $clst_boot_kernel
-#              do
-#
-#                      eval custom_kopts=\$${x}_kernelopts
-#                      echo "APPENDING CUSTOM KERNEL ARGS: ${custom_kopts}"
-#                      echo >> $icfg
-#                      echo "label $x" >> $icfg
-#                      echo "  kernel $x" >> $icfg
-#                      echo "  append initrd=$x.igz root=/dev/ram0 init=/linuxrc ${cmdline_opts} ${custom_kopts} cdroot vga=0x317 splash=silent" >> $icfg
-#                      echo >> $icfg
-#                      echo "   $x" >> $kmsg
-#                      echo "label $x-nofb" >> $icfg
-#                      echo "  kernel $x" >> $icfg
-#                      echo "  append initrd=$x.igz root=/dev/ram0 init=/linuxrc ${cmdline_opts} ${custom_kopts} cdroot" >> $icfg
-#                      echo >> $icfg
-#                      echo "   ${x}-nofb" >> $kmsg
-#              done
+               echo "--ramdisk=boot/${first}.igz" >> ${icfg}
                ;;
        ppc)
                # PPC requirements: 
@@ -69,6 +51,33 @@ case ${clst_mainarch} in
                # For now we supply a prebuilt file, prebuilt configuration 
                # and prebuilt boot message. This can be enhanced later on
                # but the following suffices for now:
+               
+               # this sets up the config file for yaboot
+               icfg=$1/boot/yaboot.conf
+               kmsg=$1/boot/boot.msg
+               echo "default ${first}" > ${icfg}
+               echo "timeout 300" >> ${icfg}
+               echo "device=cd:" >> ${icfg}
+               echo "root=/dev/ram" >> ${icfg}
+               echo "fgcolor=white" >> ${icfg}
+               echo "bgcolor=black" >> ${icfg}
+               echo "message=/boot/boot.msg" >> ${icfg}
+               for x in ${clst_boot_kernel}
+               do
+                       eval custom_kopts=\$${x}_kernelopts
+                       echo "APPENDING CUSTOM KERNEL ARGS: ${custom_kopts}"
+                       echo >> ${icfg}
+                       echo "image=/boot/${x}" >> ${icfg}
+                       echo "initrd=/boot/${x}.igz" >> ${icfg}
+                       echo "label=${x}" >> ${icfg}
+                       echo "read-write" >> ${icfg}
+                       if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
+                       then
+                           echo "append ${default_append_line} vga=791 splash=silent,theme:${clst_livecd_splash_theme}" >> ${icfg}
+                       else
+                           echo "append ${default_append_line} vga=791 splash=silent ${keymap}" >> ${icfg}
+                       fi
+               done
                ;;
        sparc*)
                scfg=$1/boot/silo.conf
index 0b74fecdd5b29a5904fd478792c2562f7d3e2d1c..cf6c8dd701417831db51468a8547e9badb144528 100755 (executable)
@@ -72,6 +72,9 @@ setup_myfeatures(){
                    USE="-gtk -gnome" emerge --oneshot --nodeps -b -k distcc || exit 1
                    #touch /tmp/.clst_distcc
                #fi
+               mkdir -p /etc/distcc
+               echo "${clst_distcc_hosts}" > /etc/distcc/hosts
+
        fi
 }
 
index 095edbb0344d3d54e71513dd8ac0bfa6fdffaa9a..2fa2ba56e02e89c0398358364e87642c5a4071c6 100755 (executable)
@@ -1,11 +1,9 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/create-iso.sh,v 1.9 2005/07/06 14:10:03 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/create-iso.sh,v 1.10 2005/08/09 19:02:31 rocket Exp $
 . ${clst_sharedir}/targets/support/functions.sh
 . ${clst_sharedir}/targets/support/filesystem-functions.sh
-#. ${clst_sharedir}/targets/${clst_target}/${clst_mainarch}-archscript.sh
 
-#source ${clst_livecd_archscript}
 ## START RUNSCRIPT
 
 if [ ! -f /usr/bin/mkisofs ]
@@ -111,10 +109,17 @@ case ${clst_mainarch} in
                # Seems silo 1.3.x+ breaks on newer machines
                # when booting from CD (current as of silo 1.4.8)
                mv ${clst_target_path}/boot/mkisofs.sparc.fu /tmp 
-               /tmp/mkisofs.sparc.fu -o ${1} -D -r -pad -quiet -S 'boot/cd.b' -B '/boot/second.b' \
-               -s '/boot/silo.conf' -abstract 'Gentoo Linux Sparc' -copyright 'Gentoo Foundation' \
-               -P 'Gentoo Linux Sparc' -p 'Gentoo Linux Sparc' -V "${clst_iso_volume_id}" \
-               -A 'G entoo Linux Sparc' ${clst_target_path}  || die "Cannot make ISO image"
+               case ${clst_livecd_cdfstype} in
+                   zisofs)
+                       /tmp/mkisofs.sparc.fu -z -o ${2} -D -r -pad -quiet -S 'boot/cd.b' -B '/boot/second.b' -s '/boot/silo.conf'\
+                       -V "${iso_volume_id}" ${clst_cdroot_path}  || die "Cannot make ISO image"
+                   ;;
+                   *)
+                       /tmp/mkisofs.sparc.fu -o ${2} -D -r -pad -quiet -S 'boot/cd.b' -B '/boot/second.b' -s '/boot/silo.conf'\
+                       -V "${iso_volume_id}" ${clst_cdroot_path}  || die "Cannot make ISO image"
+                   ;;
+               esac
+
                rm /tmp/mkisofs.sparc.fu
                                                                                                                        
        ;;
index 95ed938de16064ddb13eadbaa78904f9880a2171..6ab39d96e80664b3ab0a0c1e2cdc821dc5d0ff27 100755 (executable)
@@ -46,16 +46,6 @@ create_noloop() {
        
 }
 
-create_gcloop() {
-       echo "Creating gcloop..."
-       export loopname="image.gloop"
-       create_normal_loop
-       compress_gcloop_ucl -b 131072 -c 10 "$1/livecd.loop" "$1/livecd.gcloop" || die "compress_gcloop_ucl failed, did you emerge gcloop?"
-       rm -f "$1/livecd.loop"
-       # only a gcloop image should exist in target path
-       
-}
-
 create_squashfs() {
        echo "Creating squashfs..."
        export loopname="image.squashfs"
index 3c256cef5ba01810c56f391b94dc36cd40bb6059..df57aa95a71033f9929481724c72348ea5c64acd 100755 (executable)
@@ -19,8 +19,11 @@ copy_to_chroot(){
 }
 
 delete_from_chroot(){
-       echo "removing ${clst_chroot_path}${1} from the chroot"
-       rm -f ${clst_chroot_path}${1}
+       if [ -e ${clst_chroot_path}${1} ]
+       then
+           echo "removing ${clst_chroot_path}${1} from the chroot"
+           rm -f ${clst_chroot_path}${1}
+       fi
 }
 
 exec_in_chroot(){
@@ -190,9 +193,6 @@ check_filesystem_type(){
                ;;
        noloop)
                ;;
-       gcloop)
-               cmdline_opts="${cmdline_opts} looptype=gcloop loop=/image.gcloop"
-               ;;
        squashfs)
                cmdline_opts="${cmdline_opts} looptype=squashfs loop=/image.squashfs"
                ;;
index e4c07610982be4eae0b05c9cb2ec0940b08541f8..3764574b159701ab6ddca21f0baa106edd71c169 100755 (executable)
@@ -45,7 +45,7 @@ setup_gk_args() {
                GK_ARGS="${GK_ARGS} --no-udev"
        fi
 
-       if [ -n "${clst_livecd_linuxrc}" ]
+       if [ -n "${clst_linuxrc}" ]
        then
                GK_ARGS="${GK_ARGS} --linuxrc=/tmp/linuxrc"
        fi
index e2fb925b64f40d6cd0ecc5a8b2b3131d003ea423..18fd7c97a9c6bb3f51f3249598db0040109fa90f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.19 2005/07/08 18:57:39 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.20 2005/08/09 19:02:31 rocket Exp $
 
 . /tmp/chroot-functions.sh
 update_env_settings
@@ -184,13 +184,22 @@ then
        then
                cp /usr/lib/hotplug/firmware/* /lib/firmware
        fi
-       tar cvjpf /lib/firmware.tar.bz2 .
+       /bin/tar cjpf /lib/firmware.tar.bz2 .
        rm -f /lib/firmware/*
        mkdir -p /usr/lib/hotplug
        rm -rf /usr/lib/hotplug/firmware
        ln -sf /lib/firmware /usr/lib/hotplug/firmware
 fi
 
+
+# Clear out locales
+case ${clst_livecd_type} in
+       gentoo-release-minimal|gentoo-release-universal|gentoo-gamecd)
+               rm -rf /usr/lib/locale/{a,b,c,d,e{l,n_{A,B,C,D,G,H,I,N,P,S,US.,Z},s,t,u},f,g,h,i,j,k,l,m,n,o,p,r,s,t,u,v,w,x,y,z}*
+       ;;
+esac
+
+
 # Post configuration
 case ${clst_livecd_type} in
        gentoo-gamecd )
index 0e0d7011ee264483808f83036c67840596459ac2..13cb1447e5f71982958bcadc1e019294582e4d36 100755 (executable)
@@ -20,10 +20,6 @@ case ${clst_fstype} in
                create_noloop $1
                loopret=$?
        ;;
-       gcloop)
-               create_gcloop $1
-               loopret=$?
-       ;;
        squashfs)
                create_squashfs $1
                loopret=$?