[PC-BSD Support] Warden fail

Chris cpet at sdf.org
Thu May 9 15:27:06 PDT 2013


On 05/09/2013 15:27, Bret Busby wrote:
> On 10/05/2013, Chris <cpet at sdf.org> wrote:
>>
>> Hi,
>>
>> Using warden I noticed a bug in it's jail creation code.
>>
>> Pinpointed to certain lines in the functions.sh file:
>>
>> ### Download the chroot
>> 50
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L50>
>>
>> 	downloadchroot() {
>> 51
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L51>
>>
>> 	
>> 52
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L52>
>>
>> 	SYSVER="$(uname -r)"
>> 53
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L53>
>>
>> 	
>> 54
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L54>
>>
>> 	localdFiles="base.txz doc.txz games.txz"
>> 55
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L55>
>>
>> 	if [ "$ARCH" = "amd64" ] ;then
>> 56
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L56>
>>
>> 	dFiles="$dFiles lib32.txz"
>> 57
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L57>
>>
>> 	fi
>> 58
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L58>
>>
>> 	
>> 59
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L59>
>>
>> 	# Set the mirror URL, may be overridden by setting MIRRORURL
>> environment variable
>> 60
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L60>
>>
>> 	if [ -z"${MIRRORURL}" ];then
>> 61
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L61>
>>
>> 	get_mirror
>> 62
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L62>
>>
>> 	MIRRORURL="$VAL"
>> 63
>> <http://trac.pcbsd.org/browser/pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh#L63>
>>
>> 	fi
>>
>> The SYSVER= is wrong as it will want to fetch FreeBSD-9.1-RELEASE-p3 which
>> isn't avaialble in the mirrors but -RELEASE is
>>
>> So you will get errors like:
>>
>> Using mirror: http://mirrors.secution.com/pc-bsd
>>
>> Fetching jail environment. This may take a while...
>>
>> Downloading
>> http://mirrors.secution.com/pc-bsd/9.1-RELEASE-p3/amd64/dist/base.txz ...
>>
>> fetch:
>> http://mirrors.secution.com/pc-bsd/9.1-RELEASE-p3/amd64/dist/base.txz:
>> Not Found
>>
>>
>> I temp fixed it by changing the SYSVER arg to 9.1-RELEASE but I would
>> like it fixed for the rest.
>>
>>
> Hello.
>
> Out of curiousity, which language is that, in which the above is written?
>
shell script


More information about the Support mailing list