Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: Embedded

facilities for creating /proc /dev /sys directories?

 

 

Gentoo embedded RSS feed   Index | Next | Previous | View Threaded


lavi.kfir at gmail

Dec 23, 2010, 2:12 PM

Post #1 of 3 (384 views)
Permalink
facilities for creating /proc /dev /sys directories?

Hi,
I would like to create those directories when the target system finished the
emerge.
The easiest is to do:
mkdir -p $target_dir/{proc,dev,sys}
inside a script.
Is there any mechanism that I can use to automate this without running my
own script?

Thanks,
Kfir


miknix at gentoo

Dec 23, 2010, 3:24 PM

Post #2 of 3 (365 views)
Permalink
Re: facilities for creating /proc /dev /sys directories? [In reply to]

On 23-12-2010 22:12, Kfir Lavi wrote:
> Hi,
> I would like to create those directories when the target system finished
> the emerge.
> The easiest is to do:
> mkdir -p $target_dir/{proc,dev,sys}
> inside a script.
> Is there any mechanism that I can use to automate this without running
> my own script?
>
> Thanks,
> Kfir

See

http://www.mail-archive.com/gentoo-portage-dev [at] lists/msg01933.html

http://bugs.gentoo.org/show_bug.cgi?id=272988

People working in this feature are better than me to talk about it..

Regards,
Angelo


peter at stuge

Dec 23, 2010, 11:23 PM

Post #3 of 3 (350 views)
Permalink
Re: facilities for creating /proc /dev /sys directories? [In reply to]

Kfir Lavi wrote:
> I would like to create those directories when the target system
> finished the emerge.
> The easiest is to do:
> mkdir -p $target_dir/{proc,dev,sys}
> inside a script.
> Is there any mechanism that I can use to automate this without
> running my own script?

Not really.. With catalyst there are lots of hooks, but if using only
emerge itself you will need to add that command somewhere.

But, since you will need to add that command to a file somewhere
anyway, why not add it to a script that you use to call emerge?

The other thing you could do is to create an ebuild that contains
those directories, and maybe that ebuild could also be used to list
each and every package that you wish to install (without
dependencies, but maybe with USE flags where significant) as an easy
way to have a single command to create the full system.

I would like to play with that myself a bit actually.


//Peter

Gentoo embedded RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.