# HG changeset patch # User Christopher Rogers # Date 1304896401 0 # Node ID 4d01609b6741189999aa838859679296ad9f9e7c # Parent 6bc684d6b4f45a7c4a0dc92c6a6c34be148593ae Add a check to see if $LOCAL_REPOSITORY/sandbox exist before softlinking the lockfile /proc/1 into $chroot_dir folder. This is so the soft link is not made for non-tank systems. diff -r 6bc684d6b4f4 -r 4d01609b6741 tazwok --- a/tazwok Sun May 08 22:36:23 2011 +0000 +++ b/tazwok Sun May 08 23:13:21 2011 +0000 @@ -2268,7 +2268,7 @@ $( [ "$undigest" ] && echo ' echo "undigest='"$undigest"'" >> $chroot_dir/etc/slitaz/tazwok.conf') sed 's/LC_ALL/LC_ALL=POSIX/' -i \$chroot_dir/etc/profile # The build bot may run in a sandbox: link sandbox lockfile. - ln -s \$LOCAL_REPOSITORY/sandbox/proc/1 \$chroot_dir/proc/1 + [ -d \$LOCAL_REPOSITORY/sandbox ] && ln -s \$LOCAL_REPOSITORY/sandbox/proc/1 \$chroot_dir/proc/1 } mount_chroot()