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 > 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... 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... > -- > cheers, Robert :: protocol.by/rxu Thanks, Paulo
