On Sun, Sep 6, 2009 at 7:35 AM, William Immendorf
<[email protected]>wrote:

> In that, you mentioned that it can be used for a fully PM'd lfs
> system, including it being used for glibc and sysvinit. Well, how
> exactly do you do that?
>
> William
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
I had been looking into that system, but it seems that it isn't as easy to
use, as there are several packages that break when trying it. As for how its
done, basically you are doing a fakeroot install of the program to a
different directory, and for this I take a look at Arch Linux PKGBUILDs to
see how they are packaged.

For example, with glibc, it would be:
./configure
make
make install_root=/pkgs/${pkgname}/${pkgver} install
Replace pkgname and pkgver with the package's name and package's version
(those are left over from my AUFSPKG script implementation of this hint).

Other packages will most likely be installed by:
./configure
make
make DESTDIR=/pkgs/${pkgname}/${pkgver} install

Also, the only way you can have this totally using unionfs/aufs is by using
a more complete initcpio image. It would need to include stuff like bash,
the config files, etc, all in it. Once the root is populated by the pkgs,
then it isn't needed anymore.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to