[PC-BSD Support] Warden fail

Bret Busby bret.busby at gmail.com
Thu May 9 13:27:07 PDT 2013


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?

-- 
Bret Busby
Armadale
West Australia
..............

"So once you do know what the question actually is,
 you'll know what the answer means."
- Deep Thought,
 Chapter 28 of Book 1 of
 "The Hitchhiker's Guide to the Galaxy:
 A Trilogy In Four Parts",
 written by Douglas Adams,
 published by Pan Books, 1992

....................................................


More information about the Support mailing list