dir for initrd progs

Elan Ruusamäe glen at pld-linux.org
Sun Apr 27 12:22:04 CEST 2008


On Sunday 27 April 2008 12:45:48 Tomasz Pala wrote:
> On Sun, Apr 27, 2008 at 12:15:29 +0300, Elan Ruusamäe wrote:
> > how about putting programs that were compiled to be put to initrd into
> > own dir instead of filling up /sbin with them?
>
> And how about putting libraries in /home and temporary files in
> /usr/share?
these programs are not to be used from regular system, there are shared 
versions of same (and usually more featured) programs. [1]

> > or maybe organize them already in hierarchy that initrd would have?
> >
> > %{_libbdir}/sbin
> > %{_libbdir}/bin
>
> No - binaries must be reachable in directories specified by FHS. Are
> there any programs useless from command line?

which part of FHS they violate? %{_libdir} is in FHS, and afaik subdirs under 
it aren't regulated. also [1]

> > %{_libbdir}/lib
>
> What's the point?

organize same way as initrd would have for simplier initrd generation (cp -a 
or sth).

> > %{_libbdir}/etc
>
> No - as above, breaks FHS, this directory would not be backuped in many
> cases.

but there could be config for APP which is specially optimized for initrd 
(config which is compatible with featureless APP as full featured APP config 
would cause syntax or similiar errors). and it is not config file that you 
modify (no %config attr), it's template for config file.

-- 
glen


More information about the pld-devel-en mailing list