Mailing List Archive

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
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@lists.gentoo.org/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
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