LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-03-2013, 04:41 PM   #1
alan.vitor
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Rep: Reputation: Disabled
yum --installroot install cannot find /proc directory in Fedora 17


I'm creating chroots of Red Hat-based distributions inside my RHEL (host OS) and using them to build packages for different distributions. The process is described here: http://www.serverschool.com/dedicate...ent-in-centos/. For Fedora, I setup a basic environment with rpm -i --root=<myroot> --nodeps http://download.fedoraproject.org/pu...7-1.noarch.rpm and then use yum --installroot=<myroot> --disablerepo="host_repos" install <package_name> to install packages needed to build packages.

This process works fine for Fedora 15 and 16, but the yum install crashes on Fedora 17/18 at the yum install with the error: [Errno 2] No such file or directory: '/proc/317/cmdline'. The /proc/ directory does not exist inside <myroot> directory at this point.

Why this process does not work in Fedora 17+? Any workarounds?

edit: I've read I possibly would need to bind chroot's /proc and /dev to the one in host os. I've tried that and it still does not work.


Thanks in advance.

Last edited by alan.vitor; 04-03-2013 at 05:22 PM.
 
Old 04-09-2013, 01:40 PM   #2
greatbear
Member
 
Registered: Feb 2012
Distribution: ubuntu
Posts: 44

Rep: Reputation: Disabled
I have done only a one experiment with creating a chroot environment and cannot help much but I came across a utility called Mach which purports to automate the chroot install process. I have not personally tried it. Its used for testing package builds.

Have you looked at the Mach utility? http://fedoraproject.org/wiki/UsingMach

Best of luck!

(I have Fedora 18 on my Dell Inspiron N411z laptop which runs a i3 Intel based configuration. Runs like a champion.)

Last edited by greatbear; 04-09-2013 at 01:42 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum --installroot should use /etc/yum.repos.d? alan.vitor Linux - Software 4 04-03-2013 04:58 PM
yum --installroot service httpd mysqld not recognize noufal_pv Linux - Newbie 12 10-22-2012 08:59 AM
fedora 12 `yum update -y` & ran out of space in my /var/yum/cache/directory. techknowtarded Linux - Newbie 7 08-13-2011 07:23 PM
find: /proc/xxxx/task: No such file or directory King4lex Linux - Software 5 04-14-2007 07:42 AM
How do I install to different directory with yum? nadavvin Linux - Software 5 01-19-2007 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration