tazwok rev 514

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.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 08 23:13:21 2011 +0000 (2011-05-08)
parents 6bc684d6b4f4
children 012b3c074bdc
files tazwok
line diff
     1.1 --- a/tazwok	Sun May 08 22:36:23 2011 +0000
     1.2 +++ b/tazwok	Sun May 08 23:13:21 2011 +0000
     1.3 @@ -2268,7 +2268,7 @@
     1.4  $( [ "$undigest" ] && echo '	echo "undigest='"$undigest"'" >> $chroot_dir/etc/slitaz/tazwok.conf')
     1.5  	sed 's/LC_ALL/LC_ALL=POSIX/' -i \$chroot_dir/etc/profile
     1.6  	# The build bot may run in a sandbox: link sandbox lockfile.
     1.7 -	ln -s \$LOCAL_REPOSITORY/sandbox/proc/1 \$chroot_dir/proc/1
     1.8 +	[ -d \$LOCAL_REPOSITORY/sandbox ] && ln -s \$LOCAL_REPOSITORY/sandbox/proc/1 \$chroot_dir/proc/1
     1.9  }
    1.10  
    1.11  mount_chroot()