Date: Sat, 28 Jul 2012 17:24:48 +0400 From: Darren Baginski <kickbsd@yandex.com> To: Matthias Petermann <matthias@d2ux.net> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: bsdinstall to jail aborted (9.0-RELEASE-p3, amd64) Message-ID: <170531343481888@web19g.yandex.ru> In-Reply-To: <173631343481231@web3g.yandex.ru> References: <20120728114643.ff0b536f.matthias@d2ux.net> <173631343481231@web3g.yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
28.07.2012, 17:13, "Darren Baginski" <kickbsd@yandex.com>: > 28.07.2012, 13:46, "Matthias Petermann" <matthias@d2ux.net>: > >> šHello, >> >> šcurrently I experienced an unexpected behavior of the FreeBSD bsdinstall installer. Some weeks ago I could use it sucessfully to create a jail environment with >> >> š# bsdinstall jail /jails/myjail >> >> šToday I tried to repeat this on another system(2) and it fails after the selection of the to-be-used mirror. Also re-trying it on the original system(1) leads to an error but a different one. Since then I upgraded from 9.0-RELEASE to 9.0-RELEASE-p3 using freebsd-update. >> >> šHere are the symptoms: >> >> š(2) FreeBSD 9.0-RELEASE-p3 amd64: After typing "bsdinstall..." it brings me directly to the mirror selection list, but after selecting a mirror it aborts with an error message "An installation step has beeen aborted. Would you like to restart the installer or exit the installer?" >> >> š(1) FreeBSD 9.0-RELEASE-p3 i386: After typing "bsdinstall..." it brings me to the distribution select dialog. After selection of the distribution set, it shows the mirror selection dialog. After selecting a mirror it aborts with a fetch error "Error while fetching /base.txz: Invalid URL scheme" >> >> šI tried different mirrors, too. And they all seem to be basically online - pointing an FTP client to them showed no errors. >> >> šSo what am I doing wrong? Does bsdinstall maintain some hidden configuration file which may influence its behavior? The environment variables mentioned in bsdinstall(8) are not set on both systems. Or is there a known issue with 9.0-RELEASE-p3 which appears different on amd64 and i386 systems? >> >> šIt would be great if anyone could validate this. > > I did a quick test on 9.1-PRERELEASE, šant bsdinstall trying to fetch 9.1-PRERELEASE files, which it surely can't find. > There must be an option like 'TARGET' to specify exact version to fetch like it's the case for Debian debootsrap. > What I did next is: #diff -u mirrorselect.orig mirrorselect --- mirrorselect.orig 2012-07-28 12:55:33.000000000 +0000 +++ mirrorselect 2012-07-28 12:58:49.000000000 +0000 @@ -192,7 +192,7 @@ MIRROR_BUTTON=$? exec 3>&- -BSDINSTALL_DISTSITE="$MIRROR/pub/FreeBSD/releases/`uname -m`/`uname -p`/`uname -r`" +BSDINSTALL_DISTSITE="$MIRROR/pub/FreeBSD/releases/`uname -m`/`uname -p`/$TARGET" case $MIRROR_BUTTON in $DIALOG_CANCEL) and then: #export TARGET=9.0-RELEASE and again #bsdinstall jail /tmp/tstenv Got a working environment after that. I thing release/arch selection has to be a part of the installer, either directly or via environment variables.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?170531343481888>