Re: [OM Cooker] omvbootstrap 0.0.0
On 6 May 2014 04:22, Denis Silakov denis.sila...@rosalab.ru wrote: On 05/05/2014 09:02 PM, Robert Xu wrote: $ git clone https://github.com/robxu9/omvbootstrap cd omvbootstrap $ mkdir work/tmp work/rpm $ sudo ./omvbootstrap -d -a x86_64 -v 2014.0 -c 2014.0 -m http://mirror.yandex.ru/openmandriva/openmandriva2014.0/repository/x86_64/main/release It should create work directories automatically. Also, it should try to get a mirror in your country - although, I've noticed that there are quite a number of 2014.0 mirrors not working... Well, there is at least a small mistake in scripts/mirror: local mirrorlist=$(echo $MIRRORLIST | sed -e s/VERSION/$VERSION/ | sed -e s/ARCH/$ARCH/) replaces only first occurrence of VERSION, just add 'g' to sed command. I know - there's only supposed to be one occurrence, I hope... but I guess I can see that being there just for safety. Another issue (at least for me) is that space is not replaced with underscore at those mirrorlist that I can see - so I have Russian Federaion, not Russian_Federation. Huh, interesting. I get United_States ok... ... for me, it helps to additionally pass curl output through sed before grepping for formattedCountry: (curl -s $mirrorlist | sed 's/ /_/g'| ... Oh, then that's just the mirrorlist on the server side formatted badly. I'll add that in as a safety. -- cheers, Robert :: protocol.by/rxu
Re: [OM Cooker] omvbootstrap 0.0.0
On 06.05.2014 20:32, Robert Xu wrote: On 6 May 2014 04:22, Denis Silakov denis.sila...@rosalab.ru wrote: On 05/05/2014 09:02 PM, Robert Xu wrote: $ git clone https://github.com/robxu9/omvbootstrap cd omvbootstrap $ mkdir work/tmp work/rpm $ sudo ./omvbootstrap -d -a x86_64 -v 2014.0 -c 2014.0 -m http://mirror.yandex.ru/openmandriva/openmandriva2014.0/repository/x86_64/main/release It should create work directories automatically. Also, it should try to get a mirror in your country - although, I've noticed that there are quite a number of 2014.0 mirrors not working... Well, there is at least a small mistake in scripts/mirror: local mirrorlist=$(echo $MIRRORLIST | sed -e s/VERSION/$VERSION/ | sed -e s/ARCH/$ARCH/) replaces only first occurrence of VERSION, just add 'g' to sed command. I know - there's only supposed to be one occurrence, For ROSA, I have to use it twice: http://mirror.rosalinux.com/rosa/rosaVERSION/rosaVERSION.ARCH.list and it seems that for omv, too: http://mirror.rosalinux.com/openmandriva/openmandriva2014.0/openmandriva2014.0.i586.list
Re: [OM Cooker] omvbootstrap 0.0.0
Looks nice :) Would be nice to package it on ABF and also add wiki page. 2014-05-05 4:57 GMT+02:00 Robert Xu rob...@gmail.com: So instead of relaxing this weekend (this was frankly the first weekend I've been able to relax without having a horde of work fall from above), I decided to be, frankly, stupid and make this tool. Because it's a good idea to not relax before getting dumped with work again (FINALS save me pls) But anyway - this is omvbootstrap. It's like debootstrap or fedboostrap. Except it's not tailored to Debian distros, and *it doesn't require RPM to run*. So, if you felt like it, you could run it on Arch and it'd still install a perfect working copy of OpenMandriva Lx in your chroot. You can grab the code here - https://github.com/robxu9/omvbootstrap This is incredibly useful if you want to build a network CD, or a minimal installation. -- cheers, Robert :: protocol.by/rxu
Re: [OM Cooker] omvbootstrap 0.0.0
Perfect! 2014-05-05 11:32 GMT+04:00 Tomasz Gajc tpg...@gmail.com: Looks nice :) Would be nice to package it on ABF and also add wiki page. 2014-05-05 4:57 GMT+02:00 Robert Xu rob...@gmail.com: So instead of relaxing this weekend (this was frankly the first weekend I've been able to relax without having a horde of work fall from above), I decided to be, frankly, stupid and make this tool. Because it's a good idea to not relax before getting dumped with work again (FINALS save me pls) But anyway - this is omvbootstrap. It's like debootstrap or fedboostrap. Except it's not tailored to Debian distros, and *it doesn't require RPM to run*. So, if you felt like it, you could run it on Arch and it'd still install a perfect working copy of OpenMandriva Lx in your chroot. You can grab the code here - https://github.com/robxu9/omvbootstrap This is incredibly useful if you want to build a network CD, or a minimal installation. -- cheers, Robert :: protocol.by/rxu
Re: [OM Cooker] omvbootstrap 0.0.0
On May 4, 2014, at 10:57 PM, Robert Xu wrote: But anyway - this is omvbootstrap. It's like debootstrap or fedboostrap. Except it's not tailored to Debian distros, and *it doesn't require RPM to run*. So, if you felt like it, you could run it on Arch and it'd still install a perfect working copy of OpenMandriva Lx in your chroot. Get rid of rpm2cpio.pl, use rpm2cpio.sh, located in /usr/lib/rpm. 73 de Jeff
Re: [OM Cooker] omvbootstrap 0.0.0
On 5 May 2014 11:04, p...@mandriva.com.br wrote: Robert Xu escreveu: So instead of relaxing this weekend (this was frankly the first weekend I've been able to relax without having a horde of work fall from above), I decided to be, frankly, stupid and make this tool. Because it's a good idea to not relax before getting dumped with work again (FINALS save me pls) I like the idea. Last times I created mandriva like chroots on another distro, I used rpm2cpio and attempted to chroot until I could get a bash prompt, then until urpmi would work, etc. That is not so easy.. After some time trying to understand it, I managed to get it to work with this command: $ git clone https://github.com/robxu9/omvbootstrap cd omvbootstrap $ mkdir work/tmp work/rpm $ sudo ./omvbootstrap -d -a x86_64 -v 2014.0 -c 2014.0 -m http://mirror.yandex.ru/openmandriva/openmandriva2014.0/repository/x86_64/main/release It should create work directories automatically. Also, it should try to get a mirror in your country - although, I've noticed that there are quite a number of 2014.0 mirrors not working... But anyway - this is omvbootstrap. It's like debootstrap or fedboostrap. Except it's not tailored to Debian distros, and *it doesn't require RPM to run*. So, if you felt like it, you could run it on Arch and it'd still install a perfect working copy of OpenMandriva Lx in your chroot. You can grab the code here - https://github.com/robxu9/omvbootstrap This is incredibly useful if you want to build a network CD, or a minimal installation. Another option is to provide some simple, pre made chroot tarballs. These rot fast (not so fast for release distros, but for cooker too fast), but are almost certain to work for quite some time, then, just urpmi --auto-update inside the chroot if wanting to get updates... It'd be nice, yeah, but downloading that can also be a pain ... But people should be warned that working as root inside the chroot is not 100% safe (e.g /dev is the same and you can damage, no longer boot, the base system if installing grub for example). It is usually way cheaper then setting up a vm if you have a consumer computer, like most of us :-), .i.e. a core i3 or core i5 with 4G of memory, and this way be able to compile some large packages that require 2G of memory to build, e.g. eclipse, libreoffice, and a few others... Yeah - but for development work (especially since my main computer is Fedora), having an omv chroot makes things easier. :) -- cheers, Robert :: protocol.by/rxu
[OM Cooker] omvbootstrap 0.0.0
So instead of relaxing this weekend (this was frankly the first weekend I've been able to relax without having a horde of work fall from above), I decided to be, frankly, stupid and make this tool. Because it's a good idea to not relax before getting dumped with work again (FINALS save me pls) But anyway - this is omvbootstrap. It's like debootstrap or fedboostrap. Except it's not tailored to Debian distros, and *it doesn't require RPM to run*. So, if you felt like it, you could run it on Arch and it'd still install a perfect working copy of OpenMandriva Lx in your chroot. You can grab the code here - https://github.com/robxu9/omvbootstrap This is incredibly useful if you want to build a network CD, or a minimal installation. -- cheers, Robert :: protocol.by/rxu