Make shdir a complete path to ease it's use.
authorBrian Dolbec <dolsen@gentoo.org>
Tue, 12 Feb 2013 04:09:01 +0000 (20:09 -0800)
committerW. Trevor King <wking@tremily.us>
Sun, 15 Dec 2013 04:25:07 +0000 (20:25 -0800)
Add a "shdir" setting to config.
This is to make moving the bash code around easier.
It also reduces more hardcoded paths in the bash scripts.
Migrate all target shell scripts to use the new shdir setting

18 files changed:
etc/catalyst.conf
targets/embedded/embedded-controller.sh
targets/grp/grp-controller.sh
targets/livecd-stage1/livecd-stage1-controller.sh
targets/livecd-stage2/livecd-stage2-controller.sh
targets/netboot/netboot-combine.sh
targets/netboot/netboot-controller.sh
targets/netboot2/netboot2-controller.sh
targets/stage1/stage1-controller.sh
targets/stage2/stage2-controller.sh
targets/stage3/stage3-controller.sh
targets/stage4/stage4-controller.sh
targets/support/bootloader-setup.sh
targets/support/create-iso.sh
targets/support/functions.sh
targets/support/netboot2-final.sh
targets/support/target_image_setup.sh
targets/tinderbox/tinderbox-controller.sh

index 2d377b2281455b648fa2b9648fea50a358f73103..d52a5c84096f85b011b55d6a860a683a75be9742 100644 (file)
@@ -73,10 +73,14 @@ options="autoresume bindist kerncache pkgcache seedcache snapcache"
 # portdir specifies the source portage tree used by the snapshot target.
 portdir="/usr/portage"
 
-# sharedir specifies where all of the catalyst runtime executables are. Most
-# users do not need to change this.
+# sharedir specifies where all of the catalyst runtime executables
+# and other shared lib objects are.
+# Most users do not need to change this.
 sharedir="/usr/lib/catalyst"
 
+# shdir specifies where all of the catalyst runtime executables are.
+shdir="%(sharedir)s/targets"
+
 # snapshot_cache specifies where the snapshots will be cached to if snapcache is
 # enabled in the options.
 snapshot_cache="/var/tmp/catalyst/snapshot_cache"
index 2a0c5fe7eb891257b40d95ce20b2545ea739e502..c0b62ea345ccfe4e3670fcfc25cef3b13dc22cd1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
-source ${clst_sharedir}/targets/support/filesystem-functions.sh
+source ${clst_shdir}/support/functions.sh
+source ${clst_shdir}/support/filesystem-functions.sh
 
 case ${1} in
        enter)
@@ -11,7 +11,7 @@ case ${1} in
                shift
                export clst_packages="$*"
                exec_in_chroot \
-                       ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+                       ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh
        ;;
 
        preclean)
@@ -21,7 +21,7 @@ case ${1} in
 #              export root_fs_path="${clst_chroot_path}/tmp/mergeroot"
 #              install -d ${clst_image_path}
 
-#              ${clst_sharedir}/targets/embedded/embedded-fs-runscript.sh \
+#              ${clst_shdir}/embedded/embedded-fs-runscript.sh \
 #                      ${clst_embedded_fs_type} || exit 1
 #              imagesize=`du -sk ${clst_image_path}/root.img | cut -f1`
 #              echo "Created ${clst_embedded_fs_type} image at \
@@ -31,12 +31,12 @@ case ${1} in
 
        pre-kmerge)
                # Sets up the build environment before any kernels are compiled
-               exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/pre-kmerge.sh
        ;;
 
        post-kmerge)
                # Cleans up the build environment after the kernels are compiled
-               exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/post-kmerge.sh
        ;;
 
        kernel)
@@ -47,18 +47,18 @@ case ${1} in
                then
                        cp -pPR ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
                fi
-               exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/kmerge.sh
                delete_from_chroot tmp/linuxrc
        ;;
 
        target_image_setup)
                shift
-               ${clst_sharedir}/targets/support/target_image_setup.sh ${1}
+               ${clst_shdir}/support/target_image_setup.sh ${1}
 
        ;;
        livecd-update)
                # Now, finalize and tweak the livecd fs (inside of the chroot)
-               exec_in_chroot  ${clst_sharedir}/targets/support/livecdfs-update.sh
+               exec_in_chroot  ${clst_shdir}/support/livecdfs-update.sh
        ;;
 
        bootloader)
@@ -66,12 +66,12 @@ case ${1} in
                # Here is where we poke in our identifier
                touch ${1}/livecd
 
-               ${clst_sharedir}/targets/support/bootloader-setup.sh ${1}
+               ${clst_shdir}/support/bootloader-setup.sh ${1}
        ;;
 
        iso)
                shift
-               ${clst_sharedir}/targets/support/create-iso.sh ${1}
+               ${clst_shdir}/support/create-iso.sh ${1}
        ;;
 
        clean)
index 541429a2095b274e0e31e6aa4ff7dd1991b34dd0..0f1a5b5b283522504b74240af4af409d7337c66e 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
+source ${clst_shdir}/support/functions.sh
 
 case $1 in
        enter)
@@ -15,11 +15,11 @@ case $1 in
                shift
 
                export clst_grp_packages="$*"
-               exec_in_chroot ${clst_sharedir}/targets/grp/grp-chroot.sh
+               exec_in_chroot ${clst_shdir}/grp/grp-chroot.sh
        ;;
 
        preclean)
-               exec_in_chroot ${clst_sharedir}/targets/grp/grp-preclean-chroot.sh
+               exec_in_chroot ${clst_shdir}/grp/grp-preclean-chroot.sh
        ;;
 
        clean)
index f3b1f40efdf82b3e8ae701108ee77dbeb4f152f4..19b8dd13a3ed1c41d1ec9b6b949af619004081ce 100755 (executable)
@@ -1,5 +1,5 @@
 
-source ${clst_sharedir}/targets/support/functions.sh
+source ${clst_shdir}/support/functions.sh
 
 ## START RUNSCRIPT
 
@@ -9,7 +9,7 @@ case $1 in
                export clst_packages="$*"
                mkdir -p ${clst_chroot_path}/usr/livecd ${clst_chroot_path}/tmp
                exec_in_chroot \
-                       ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+                       ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh
                echo "${clst_packages}" > ${clst_chroot_path}/tmp/packages.txt
                ;;
 
index 57dcff748e70230e456039bb5beb0fb687404e28..a98cb471af23aa026c689093698a801bc059a9b6 100755 (executable)
@@ -1,16 +1,16 @@
 
-source ${clst_sharedir}/targets/support/functions.sh
-source ${clst_sharedir}/targets/support/filesystem-functions.sh
+source ${clst_shdir}/support/functions.sh
+source ${clst_shdir}/support/filesystem-functions.sh
 
 case $1 in
        pre-kmerge)
                # Sets up the build environment before any kernels are compiled
-               exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/pre-kmerge.sh
                ;;
 
        post-kmerge)
                # Cleans up the build environment after the kernels are compiled
-               exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/post-kmerge.sh
                ;;
 
        kernel)
@@ -22,7 +22,7 @@ case $1 in
                then
                        cp -pPR ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
                fi
-               exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/kmerge.sh
                delete_from_chroot tmp/linuxrc
 
                extract_modules ${clst_chroot_path} ${clst_kname}
@@ -79,7 +79,7 @@ case $1 in
 
        livecd-update)
                # Now, finalize and tweak the livecd fs (inside of the chroot)
-               exec_in_chroot ${clst_sharedir}/targets/support/livecdfs-update.sh
+               exec_in_chroot ${clst_shdir}/support/livecdfs-update.sh
 
                # Move over the xinitrc (if applicable)
                # This is moved here, so we can override any default xinitrc
@@ -92,7 +92,7 @@ case $1 in
                ;;
 
        rc-update)
-               exec_in_chroot ${clst_sharedir}/targets/support/rc-update.sh
+               exec_in_chroot ${clst_shdir}/support/rc-update.sh
                ;;
 
        fsscript)
@@ -182,23 +182,23 @@ case $1 in
                        ;;
                esac
 
-               ${clst_sharedir}/targets/support/bootloader-setup.sh $1
+               ${clst_shdir}/support/bootloader-setup.sh $1
                ;;
 
     unmerge)
         shift
         export clst_packages="$*"
-        exec_in_chroot ${clst_sharedir}/targets/support/unmerge.sh
+        exec_in_chroot ${clst_shdir}/support/unmerge.sh
     ;;
 
        target_image_setup)
                shift
-               ${clst_sharedir}/targets/support/target_image_setup.sh $1
+               ${clst_shdir}/support/target_image_setup.sh $1
                ;;
 
        iso)
                shift
-               ${clst_sharedir}/targets/support/create-iso.sh $1
+               ${clst_shdir}/support/create-iso.sh $1
                ;;
 esac
 exit $?
index e4294ca05236e066bd7a8aea082a677932a971d4..d5312fb8f82aa0df30179e3b0cac836233948bd6 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/chroot-functions.sh
-source ${clst_sharedir}/targets/support/functions.sh
-source ${clst_sharedir}/targets/support/filesystem-functions.sh
+source ${clst_shdir}/support/chroot-functions.sh
+source ${clst_shdir}/support/functions.sh
+source ${clst_shdir}/support/filesystem-functions.sh
 
 update_env_settings
 
index edf1f21aee4a15f0335aa169debc890433e46cb0..93feb266af430681dd1fcc448c8861387459fc09 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
-source ${clst_sharedir}/targets/support/filesystem-functions.sh
+source ${clst_shdir}/support/functions.sh
+source ${clst_shdir}/support/filesystem-functions.sh
 
 
 case ${1} in
@@ -11,7 +11,7 @@ case ${1} in
                clst_root_path="/" \
                clst_packages="$*" \
                exec_in_chroot \
-               ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+               ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh
        ;;
 
        busybox)
@@ -30,26 +30,26 @@ case ${1} in
                clst_myemergeopts="${clst_myemergeopts} -O" \
                clst_packages="busybox" \
                exec_in_chroot \
-               ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+               ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh
        ;;
 
        pre-kmerge)
                # Sets up the build environment before any kernels are compiled
-               #exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+               #exec_in_chroot ${clst_shdir}/support/pre-kmerge.sh
        ;;
 
        post-kmerge)
                # Cleans up the build environment after the kernels are compiled
-               #exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+               #exec_in_chroot ${clst_shdir}/support/post-kmerge.sh
        ;;
 
        kernel)
                shift
                export clst_kname="$1"
                export clst_root_path="/"
-               #exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
-               #exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
-               #exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+               #exec_in_chroot ${clst_shdir}/support/pre-kmerge.sh
+               #exec_in_chroot ${clst_shdir}/support/kmerge.sh
+               #exec_in_chroot ${clst_shdir}/support/post-kmerge.sh
                #extract_kernels kernels
        ;;
 
@@ -61,15 +61,15 @@ case ${1} in
                clst_myemergeopts="${clst_myemergeopts} --nodeps" \
                clst_packages="netboot-base" \
                exec_in_chroot \
-               ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+               ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh
 
                clst_files="${@}" \
                exec_in_chroot \
-               ${clst_sharedir}/targets/${clst_target}/${clst_target}-image.sh
+               ${clst_shdir}/${clst_target}/${clst_target}-image.sh
        ;;
 
        finish)
-               ${clst_sharedir}/targets/${clst_target}/${clst_target}-combine.sh
+               ${clst_shdir}/${clst_target}/${clst_target}-combine.sh
        ;;
 
        clean)
index 2ffcb0d7684e4975ed583739355bfa6d8bf1e410..be5f91d41310807417f5b80226e0a0d2399742df 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
-source ${clst_sharedir}/targets/support/filesystem-functions.sh
+source ${clst_shdir}/support/functions.sh
+source ${clst_shdir}/support/filesystem-functions.sh
 
 case ${1} in
        build_packages)
@@ -10,17 +10,17 @@ case ${1} in
                clst_root_path="/" \
                clst_packages="$*" \
                exec_in_chroot \
-               ${clst_sharedir}/targets/${clst_target}/${clst_target}-pkg.sh
+               ${clst_shdir}/${clst_target}/${clst_target}-pkg.sh
        ;;
 
        pre-kmerge)
                # Sets up the build environment before any kernels are compiled
-               exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/pre-kmerge.sh
        ;;
 
        post-kmerge)
                # Cleans up the build environment after the kernels are compiled
-               exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/post-kmerge.sh
        ;;
 
        kernel)
@@ -37,7 +37,7 @@ case ${1} in
                        cp ${clst_busybox_config} ${clst_chroot_path}/tmp/busy-config
                fi
 
-               exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/kmerge.sh
 
                delete_from_chroot tmp/linuxrc
                delete_from_chroot tmp/busy-config
@@ -56,13 +56,13 @@ case ${1} in
                # Copy remaining files over to the initramfs target
                clst_files="${@}" \
                exec_in_chroot \
-               ${clst_sharedir}/targets/${clst_target}/${clst_target}-copyfile.sh
+               ${clst_shdir}/${clst_target}/${clst_target}-copyfile.sh
        ;;
 
        final)
                # For each arch, fetch the kernel images and put them in builds/
                echo -e ">>> Copying completed kernels to ${clst_target_path} ..."
-               ${clst_sharedir}/targets/support/netboot2-final.sh
+               ${clst_shdir}/support/netboot2-final.sh
        ;;
 
        clean)
index 3671095cba0c5f372d8eac15647a5530d8f23dce..8ed42092c6462f63b8811796b2d7ecac043a87d4 100755 (executable)
@@ -1,29 +1,29 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
+source ${clst_shdir}/support/functions.sh
 
 case $1 in
        enter)
        ;;
 
        run)
-               cp ${clst_sharedir}/targets/stage1/build.py ${clst_chroot_path}/tmp
+               cp ${clst_shdir}/stage1/build.py ${clst_chroot_path}/tmp
 
                # Setup "ROOT in chroot" dir
                install -d ${clst_chroot_path}/${clst_root_path}/etc
                install -d ${clst_chroot_path}/${clst_root_path}/etc/portage
 
                # Setup make.conf and make.profile link in "ROOT in chroot":
-               copy_to_chroot ${clst_chroot_path}/etc/portage/make.conf /${clst_root_path}/etc/portage
+               copy_to_chroot ${clst_chroot_path}/etc/portage/make.conf ${clst_root_path}/etc/portage
 
                # Enter chroot, execute our build script
                exec_in_chroot \
-                       ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh \
+                       ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh \
                        || exit 1
        ;;
 
        preclean)
-               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-preclean-chroot.sh || exit 1
+               exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-preclean-chroot.sh || exit 1
        ;;
 
        clean)
index 69ba7c97ac1ce1ec0b59b0eae63a754b84a0ad1d..25e5120856755d5da0ae0b7a8e056dde25aac271 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
+source ${clst_shdir}/support/functions.sh
 
 # Only put commands in this section that you want every target to execute.
 # This is a global default file and will affect every target
@@ -13,11 +13,11 @@ case $1 in
                shift
                export clst_packages="$*"
                exec_in_chroot \
-                       ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+                       ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh
        ;;
 
        preclean)
-               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-preclean-chroot.sh
+               exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-preclean-chroot.sh
        ;;
 
        clean)
index ff546f8dcf397992adf31c36186500cca45c94ed..df1479eaf3343632f1169b2be66f69d9e2f78a2f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
+source ${clst_shdir}/support/functions.sh
 
 # Only put commands in this section that you want every target to execute.
 # This is a global default file and will affect every target
@@ -12,11 +12,11 @@ case $1 in
        run)
                shift
                export clst_packages="$*"
-               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+               exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh
        ;;
 
        preclean)
-               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-preclean-chroot.sh
+               exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-preclean-chroot.sh
        ;;
 
        clean)
index ff8dc03878a3f78acb70125a8005804fbbbd534f..d42f302fa35d770c4549503cd819d0479dc35d2b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
+source ${clst_shdir}/support/functions.sh
 
 # Only put commands in this section that you want every target to execute.
 # This is a global default file and will affect every target
@@ -11,12 +11,12 @@ case $1 in
 
        pre-kmerge)
                # Sets up the build environment before any kernels are compiled
-               exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/pre-kmerge.sh
        ;;
 
        post-kmerge)
                # Cleans up the build environment after the kernels are compiled
-               exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/post-kmerge.sh
        ;;
 
        kernel)
@@ -27,7 +27,7 @@ case $1 in
                then
                        cp -pPR ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
                fi
-               exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
+               exec_in_chroot ${clst_shdir}/support/kmerge.sh
                delete_from_chroot tmp/linuxrc
                extract_modules ${clst_chroot_path} ${clst_kname}
                # Do we need this one?
@@ -37,15 +37,15 @@ case $1 in
        build_packages)
                shift
                export clst_packages="$*"
-               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+               exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh
        ;;
 
        preclean)
-               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-preclean-chroot.sh ${clst_root_path}
+               exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-preclean-chroot.sh ${clst_root_path}
        ;;
 
        rc-update)
-               exec_in_chroot ${clst_sharedir}/targets/support/rc-update.sh
+               exec_in_chroot ${clst_shdir}/support/rc-update.sh
        ;;
 
        fsscript)
@@ -54,7 +54,7 @@ case $1 in
 
        livecd-update)
                # Now, finalize and tweak the livecd fs (inside of the chroot)
-               exec_in_chroot ${clst_sharedir}/targets/support/livecdfs-update.sh
+               exec_in_chroot ${clst_shdir}/support/livecdfs-update.sh
 
                # Move over the xinitrc (if applicable)
                # This is moved here, so we can override any default xinitrc
@@ -71,18 +71,18 @@ case $1 in
 
        target_image_setup)
                shift
-               ${clst_sharedir}/targets/support/target_image_setup.sh $1
+               ${clst_shdir}/support/target_image_setup.sh $1
        ;;
 
        unmerge)
                shift
                export clst_packages="$*"
-               exec_in_chroot ${clst_sharedir}/targets/support/unmerge.sh
+               exec_in_chroot ${clst_shdir}/support/unmerge.sh
        ;;
 
        iso)
                shift
-               ${clst_sharedir}/targets/support/create-iso.sh $1
+               ${clst_shdir}/support/create-iso.sh $1
        ;;
 
        clean)
index a0bc5f581fbae9e1e11fe80b6f6a1c0e421424f6..857ce6f3382b99b12d067085ea0746fa12a79ed5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
-source ${clst_sharedir}/targets/support/filesystem-functions.sh
+source ${clst_shdir}/support/functions.sh
+source ${clst_shdir}/support/filesystem-functions.sh
 
 # $1 is the destination root
 
@@ -455,7 +455,7 @@ case ${clst_hostarch} in
                [ -d "${1}/boot" ] && rmdir ${1}/boot
 
                # Source the arcload source file to generated required sections of arc.cf
-               source ${clst_sharedir}/targets/support/mips-arcload_conf.sh
+               source ${clst_shdir}/support/mips-arcload_conf.sh
 
                # Generate top portions of the config
                echo -e "${topofconfig}${serial}${dbg}${cmt1}" >> ${scratch}/arc.cf
index fe1f0fc4aecf55dd6948b15f6b536940ef71f727..08598e5da6683357603b74a1335b70a4359c417e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
-source ${clst_sharedir}/targets/support/filesystem-functions.sh
+source ${clst_shdir}/support/functions.sh
+source ${clst_shdir}/support/filesystem-functions.sh
 
 ## START RUNSCRIPT
 
index 80e371ccfa7e9b4af52f79a30c68d5fd24a973dd..941b6ca794c69176b3816fcbf18f9f89c243c8a8 100755 (executable)
@@ -24,7 +24,7 @@ exec_in_chroot(){
 
        echo "Copying ${file_name} to ${destdir}"
        copy_to_chroot ${1} ${destdir}
-       copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh \
+       copy_to_chroot ${clst_shdir}/support/chroot-functions.sh \
                ${destdir}
 
        chroot_path=${clst_chroot_path}${subdir}
index 2ee207e703d5d93d6a1a649056a2f70f89ed6bc5..55835d2387be82fc249bd701901859cb039c39a3 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
-source ${clst_sharedir}/targets/support/filesystem-functions.sh
+source ${clst_shdir}/support/functions.sh
+source ${clst_shdir}/support/filesystem-functions.sh
 
 
 extract_kernels ${clst_target_path}boot
index b9e2781ea8da2d4a8e95833d674dff664cac5517..b428d4ed2df487dc5de4ca3e7f1efee6b477d073 100755 (executable)
@@ -1,6 +1,6 @@
 
-source ${clst_sharedir}/targets/support/functions.sh
-source ${clst_sharedir}/targets/support/filesystem-functions.sh
+source ${clst_shdir}/support/functions.sh
+source ${clst_shdir}/support/filesystem-functions.sh
 
 # Make the directory if it doesnt exist
 mkdir -p $1
index d7d89cb99c3e2d01c0857bdc5ee6746284f168a3..3dbc76f1ac257a8fd2ab6439280959037bf7b45c 100755 (executable)
@@ -1,14 +1,14 @@
 #!/bin/bash
 
-source ${clst_sharedir}/targets/support/functions.sh
+source ${clst_shdir}/support/functions.sh
 
 case $1 in
        run)
                shift
-               exec_in_chroot ${clst_sharedir}/targets/tinderbox/tinderbox-chroot.sh
+               exec_in_chroot ${clst_shdir}/tinderbox/tinderbox-chroot.sh
        ;;
        preclean)
-               #exec_in_chroot ${clst_sharedir}/targets/tinderbox/tinderbox-preclean-chroot.sh
+               #exec_in_chroot ${clst_shdir}/tinderbox/tinderbox-preclean-chroot.sh
                delete_from_chroot /tmp/chroot-functions.sh
        ;;
        clean)