BTW, i will to spend more time on the problem associated to the detection of repositories... a part of the code just look very weird (it seems that some times we skip remote repositories when we parse the .url file for a given distro). I will investigate the problem.
----- Mail Original ----- De: "Abhishek K" <[EMAIL PROTECTED]> À: [email protected] Envoyé: Jeudi 7 Août 2008 03:22:40 GMT -05:00 USA/Canada - États de l'Est Objet: Re: [Oscar-devel] merge branch-5-1 and trunk - something to test Geoffroy, The setup-distro parameter seems to work now (although, I can't say for sure since I am doing all my testing on Ubuntu Hardy 8.04) BTW, it's sweet to have an OSCAR deb repository. I just have to do "sudo aptitude update" && "sudo aptitude upgrade" to get the new Debian packages :) Now the bootstrap process immediately dies out with an error, after these last changes. (See attached bootstrap_error.log) I tried to dig up into what causes this -- Remote repositories (http, ftp) are returned as empty and hence repos_list_urlfile does not populate it into @remote and hence @pools. --- PackagePath.pm 2008-08-06 14:22:35.000000000 -0600 +++ PackagePath_modified.pm 2008-08-07 00:50:19.000000000 -0600 @@ -422,6 +422,8 @@ # sub repo_empty ($) { my ($path) = (@_); + # How are we going to check if remote repositories (http, ftp) are empty are not? + return 0 if (repo_local($path) == 0); $path =~ s,^file:/,/,; return 1 if (! -d $path); my $entries = 0; This seems to take me further, but I encounter distro repository issues about "no matching packages found". So I did the following changes -- --- supported_distros.txt 2008-08-07 01:17:25.000000000 -0600 +++ supported_distros_modified.txt 2008-08-07 01:16:53.000000000 -0600 @@ -10,8 +10,8 @@ # default repository URLs have to follow the rapt/yume syntax [unstable] -ubuntu-8-i386 http://us.archive.ubuntu.com/ubuntu/+gutsy+universe+multiverse http://bear.csm.ornl.gov/repos/debian-4-i386/+etch+/ -ubuntu-7-i386 http://us.archive.ubuntu.com/ubuntu/+gutsy+universe+multiverse http://bear.csm.ornl.gov/repos/debian-4-i386/+etch+/ +ubuntu-8-i386 http://us.archive.ubuntu.com/ubuntu/+hardy+main+universe+multiverse http://bear.csm.ornl.gov/repos/debian-4-i386/+etch+/ +ubuntu-7-i386 http://us.archive.ubuntu.com/ubuntu/+gutsy+main+universe+multiverse http://bear.csm.ornl.gov/repos/debian-4-i386/+etch+/ debian-4-x86_64 http://ftp.us.debian.org/debian/+etch+main http://bear.csm.ornl.gov/repos/debian-4-x86_64/+etch+/ debian-4-i386 http://ftp.us.debian.org/debian/+etch+main http://bear.csm.ornl.gov/repos/debian-4-i386/+etch+/ redhat-el-5-x86_64 /tftpboot/distro/rhel-5-x86_64 /tftpboot/oscar/rhel-5-x86_64 But finally it again dies after downloading and setting up all the base prereqs. Are you planning to put this merge back onto the OSCAR svn repo? I can probably test for Ubuntu and RHEL x86, and directly commit such patches upstream. Thanks, -- Abhishek On Wed, Aug 6, 2008 at 2:30 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > I also fixed the problem with oscar-config --setup-distro. BTW, this is > needed only if you want to create images based on a Linux distribution > different from the local distro. For instance, if you want to create a > CentOS-5 image on your Debian system. > > I uploaded new Debian packages that fix the problem. > > Thanks, > ----- Mail Original ----- > De: "geoffroy vallee" <[EMAIL PROTECTED]> > À: [email protected] > Envoyé: Mardi 5 Août 2008 23:04:11 GMT -05:00 USA/Canada - États de l'Est > Objet: Re: [Oscar-devel] merge branch-5-1 and trunk - something to test > > Hi, > > If you want to have logs, direct stdout (it seems you actually did it), the > automatic creation of a log is not directly supported (and actually makes > the boostrapping a little bit more complex). > > For the prompt before installation, it is actually possible, i also like > this kind of stuff: edit the /etc/oscar/oscar.conf file and change > "PREREQ_MODE = check_and_fix" to "PREREQ_MODE = check_only". :-) It will > tell you what you will need to manually do. oscar-config does not provide an > interactive mode. > > About ubuntu-8, it should actually work, we did test here at the lab but > you have a good point, i forgot to include it in list of supported distros. > I just checked-in a fix, i am about to regenerate the packages. Feel free to > give it a try. > > About other oscar-config options (such as --setup-distro), it is not yet > working because a lack of time (the merge took a lot of my time). This is > one of my next step. > > Thanks a lot for your feedback, it motivates me in order to continue to > work on that (the merge was really not fun!). > > Thanks, > > ----- Mail Original ----- > De: "Abhishek K" <[EMAIL PROTECTED]> > À: [email protected] > Envoyé: Mardi 5 Août 2008 10:20:46 GMT -05:00 USA/Canada - États de l'Est > Objet: Re: [Oscar-devel] merge branch-5-1 and trunk - something to test > > Thanks, Geoffroy! This does make the installation process a whole lot > easier! > > I didn't play much with it yet, but here are a few general issues and error > I faced -- > > 1) I couldn't find a log for the OSCAR bootstrap process. Is one created? > 2) FWIW, it would be good to have oscar-config _prompt_ before installing > the prereqs/opkgs so that I understand what packages are being installed on > my system (but maybe that's just me) > > I gave this a whirl on Ubuntu hardy 8.04 and it didn't work. Maybe I am > doing something wrong here. > I initially tried setting my distro ID to ubuntu 7 as -- > > $ sudo oscar-config --setup-distro ubuntu-7-i386 > Use of uninitialized value in string eq at /usr/bin/oscar-config line 104. > Use of uninitialized value in string eq at /usr/bin/oscar-config line 111. > > But it couldn't install all the prereqs for me. > Then I tried this -- > > $ echo "ubuntu-8-i386 > http://us.archive.ubuntu.com/ubuntu/+hardy+universe+multiverse > http://bear.csm.ornl.gov/repos/debian-4-i386/+etch+/" >> > /etc/oscar/supported_distros.txt > > $ cat /tftpboot/distro/ubuntu-8-i386.url > http://us.archive.ubuntu.com/ubuntu/+hardy+universe+multiverse > > But it still could not install the prereqs . Are there any distro-specific > nits which it is failing on? > I can manually install all the base prereq packages using apt-get but the > script can't find them. > > ERROR: impossible to install base ( /usr/bin/install_prereq --smart > /usr/share/oscar/prereqs/base). > at /usr/bin/oscar-config line 161 > ERROR: impossible to install base prereqs (/usr/share/oscar/prereqs/base) > at /usr/bin/oscar-config line 161 > ERROR: Impossible to complete stage 2 of the bootstrap. > at /usr/bin/oscar-config line 161 > > Log attached. > Any help would be much appreciated. > > Thanks, > -- Abhishek > > > On Mon, Aug 4, 2008 at 11:04 AM, <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > I managed to do most of the work for the merge of branch-5-1 and trunk; I > > have something that could be tested. Up-to-now, I focused mainly on > Debian > > and Ubuntu i386. To test it, do the following: > > - edit your /etc/apt/sources.list file and add the following entry: > > deb http://bear.csm.ornl.gov/repos/debian-4-i386/ etch . > > - execute "aptitude update && aptitude install oscar oscar-bin liboscar" > > - finally, try to execute "oscar-config --bootstrap". > > > > This will install OSCAR directly on your system (no need of OSCAR_HOME) > and > > try to bootstrap OSCAR. If it works, this means that all the prereqs are > > ready and core packages installed on your machine. > > We still have work to do to support install_cluster but this is a good > > starting point. > > > > BTW, if you are interested in testing the merge on another system, let me > > know, i can try to generate all the needed binary packages. I already > setup > > repositories for debian, rhel5 and fedora core 9, both x86 and x86_64. > > > > Regards, > > > > Geoffroy. > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Oscar-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/oscar-devel > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Oscar-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oscar-devel > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Oscar-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oscar-devel > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Oscar-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oscar-devel > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
