[arm] Mageia arm chroot

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[arm] Mageia arm chroot

Postby fedya » Aug 31st, '12, 16:29

Hi.
i'm trying to build mageia arm chroot
with this command

Code: Select all
sudo urpmi.addmedia --distrib --urpmi-root /home/user/mageia/rootfs/ http://packages.rtp-net.org/mageia/1/armv5tl/


But faced with error

Code: Select all
getting exclusive lock on urpmi
retrieving media.cfg file...
retrieved   media/media_info/media.cfg
skipping non compatible media `core/release' (for armv5tl)
skipping non compatible media `debug/core/release' (for armv5tl)
skipping non compatible media `../../SRPMS/core/release' (for armv5tl)
unable to add medium
unlocking urpmi database


What's wrong why chroot can not be installed?
fedya
 
Posts: 2
Joined: Aug 31st, '12, 16:27

Re: [arm] Mageia arm chroot

Postby wintpe » Sep 3rd, '12, 18:27

for some reason your urpmi is using the rpm database of the host system, and its incompatible, as its an x86 system.

would think you need a private rpm database for the chroot env.

so see if there is a way to redefine the rpm database it uses, and set one up.

the other option of course is to skip the rpm database entirly, and just install the files from the RPM's in the path you want.

you can do this by running

rpm2cpio XXXXXXXXX.rpm|cpio -id (do this in the destination directory, otherwise it might overright your OS)

the core of an RPM is cpio, so it does not take much to extract the files in it.

but you will not be able to remove the rpm's with rpm -e or use any rpm commands to query whats installed.

it also wont run any pre, post, scripts.

you can do this manualy by extracting the spec file and examining it.

rpm --scripts -qp xxxxxxxxxxxxx.rpm > temp.spec

ls, rm, mv will be your only options.

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest